symfony1 - Symfony Embedded Relation Many2Many - linking unique fields or creating new fields -
i'm using embedded relation allow user edit/add books library , in same form add/remove n authors wrote book within auto generated admin.
here problem: authors name unique, when enter author exists sfvalidatordoctrineunique produces error.
an object same "name" exist.
what want catch error , tell form not try add exisiting author anew.
do use event system that, or modify validators or how can that?
thank hoodie
ps: after searching found might solution haven't made work yet http://symfonyguide.wordpress.com/2009/09/28/symfony-forms-saving-process/
i opinion should not add new author if exists.
sfdoctrineactastaggableplugin same way. searches existing tags , merge them current (added user form) tags.
but here 1 issue: 2 authors - aleksander pushkin , alexander pushkin, same authors us, different machine.
Comments
Post a Comment