The first thing is adding an index unique to your schema, it will
generate a unique column in your tables, and propel will throw an
exception, and to aviod showing your user that you shuld use a
validator (probably a custom one)

2008/9/5 javo <[EMAIL PROTECTED]>:
>
> Hi all,
>
> I've created some simple CRUD model (article.id, article.name,
> article.created_at),
> My question is, how can I validate field (article.name) if I want to
> avoid duplicate entries?
> thank you
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to