[FLOW3-general] form validation

Karsten Dambekalns karsten at typo3.org
Fri Sep 28 20:29:26 CEST 2012


Hi.

Defining

 protected $days = 0;

would give you a default value that is non-null. Alternatively you can
make the database accept NULL values annotating the field with

 @ORM\Column(nullable=true)

In any case validation *should* kick in during script shutdown, so I
wonder what's wrong. If the problem persists, please create a bug report
on Forge.

Regards,
Karsten
-- 
Karsten Dambekalns
TYPO3 Core Developer, FLOW3 / Phoenix Team

TYPO3 .... inspiring people to share!
Get involved: typo3.org


More information about the FLOW3-general mailing list