fbpx

Tag value object

Symfony form pills – Value object

Suppose that we have a value object or, more in general, an object where its data has been set in the constructor [crayon-60784f0e1abae190710643/] and its FormType [crayon-60784f0e1abb6757659876/] Let’s assume that bar and foobar are taken from HTTP POST values (so, basically, we need those values to be posted…

Don’t rely entity setters (order)

What this code does? [crayon-60784f0e1b8ba442061100/] It’s a simple class that represent a DateTimeInterval with a flag named allDayLong that let an object of DateTimeInterval class to fill all day. You can see that setFrom and setTo are affected from allDayLong flag: if is set, time of…