[FLOW3-general] Flow and validation when deleting

Stephen Bungert stephenbungert at yahoo.de
Mon Feb 4 16:37:17 CET 2013


Hi,

I have only just started using flow3, bu maybe you need validation groups?

http://docs.typo3.org/flow/TYPO3FlowDocumentation/TheDefinitiveGuide/PartIII/Validation.html#advanced-feature-partial-validation

It also mentions calling different validators based on the action.

Stephen..


"Stephan Vidar" <vidvid at freakmail.de> schrieb im Newsbeitrag 
news:mailman.1.1359979559.6577.flow3-general at lists.typo3.org...
> Hi,
>
> I have a model with propertys. Later I added a validation of a property of 
> a model (location).
>
> /**
>  * The location
>  * @var string
>  * @Flow\Validate(type="NotEmpty")
>  */
> protected $location;
>
> Existing records with an empty string in this property can no longer be 
> deleted because the validation to fail:
>
> An error occurred while trying to call 
> ...Controller\ConcertController->deleteAction(). Error for 
> concert.location: This property is required.
>
> Is it a bug or a feature?
>
> Thx, Stephan 




More information about the FLOW3-general mailing list