[FLOW3-general] A question about partial validation

Alexander Berl A.Berl at eol.de
Mon Jan 21 12:19:07 CET 2013


Hi Francois,



The validationGroup "createAction" needs to be annotated in the action you actually want it

to apply to - it is not automatically in effect in the createAction of your controller.



·         @Flow\ValidationGroups({"createAction"})



Did you annotate the action accordingly?



Cheers,

Alex



> The Flow manual says that you can have partial validation based on an

> action's name, example:

>

> * @Flow\Validate(type="NotEmpty", validationGroups={"createAction"})

>

> The implicit statement seems to be that this will work for the

> FooController if your domain model is Foo. But can that be used with

> another controller, if you're doing Foo-related stuff in a

> BarController? My current results say "no" :-(

>

> Using FLOW3 1.1 (and yes, I adapted the validation annotation).

_________________________________________________________________________________________________________________________
Alexander Berl
Senior Developer

EOL Group GmbH
Siemensstraße 3
35463 Fernwald-Annerod
Germany

Tel.:     +49 (0) 641 46092 - 0
Mobil:   +49 (0) 172 6376384
Fax:      +49 (0) 641 46092 - 199

E-Mail:  a.berl at eol.de<mailto:a.berl at eol.de>
Web:    www.eol.de<http://www.eol.de/>



More information about the Flow mailing list