[FLOW3-general] Re: Validate if an object is unique

Widmer Cornel cornel at kollerinternet.ch
Thu Feb 28 13:17:16 CET 2013


Hi David

This annotation has done the trick. Thanks for your reply!


Cornel


Quote: David Sporer wrote on Thu, 28 February 2013 10:52
----------------------------------------------------
> Hi,
> 
> you could try to add the identity annotation to the property in your model
> @*FLOW*\*Identity*
> *
> *
> *Best regards*
> *David*
> 
> 
> 2013/2/27 Widmer Cornel <cornel at kollerinternet.ch>
> 
> > In my application it is possible to create new users. The e-mail adress is
> > used as identifier for the username (account). When I create a new user
> > over the form with an existing e-mail flow throws the error: "Integrity
> > constraint violation: 1062 Duplicate entry".
> >
> > How can I validate this?
> >
> > I tried to validate on the controller-action with "UniqueEntity" but then
> > i got the error: "The object supplied for the UniqueEntityValidator must
> > have at least one identity property."
> >
> > Is there a way on the model to achive this?
> > ______________________________**_________________
> > FLOW3-general mailing list
> > FLOW3-general at lists.typo3.org
> > http://lists.typo3.org/cgi-**bin/mailman/listinfo/flow3-**general<http://lists.typo3.org/cgi-bin/mailman/listinfo/flow3-general>
> >
> 
> 
> 
> -- 
> If you're interested in my work you can follow me or my current project
> @sporerd <https://twitter.com/sporerd> and
> @PasscreatorDe<https://twitter.com/PasscreatorDe>
----------------------------------------------------




More information about the FLOW3-general mailing list