Hi all, im relatively new to symfony, so i say sorry in advance if my question is not appropriate.
I wonder if the related UniqueValidator should be refactored partly to allow explicit mapping of form fields to database-attributes. It drove me crazy to determine which column names to pass - curiously the attribute-name magic of doctrine clashed somhow with the names i used in my sfForm childclass. Aware of the design principle convention over configuration - some conventions seems to be annoying during the process of developing custom code - for example: I love the symfony CRUD generator for prototyping, but i am also into the developement of custom forms (uh... "in love" is perhaps a strong wording ;)), enriched with ajax- driven widgets generated by javascript-frameworks, e.g. dojo etc... Such form classes implement much more app-logic than originally intendet; so they have to rememer states (perhaps a root_id of a tree), generate messages, engage event-triggers for client etc... Regardless of the compexity of my forms - and aware of arguments that my way seems probably not the correct "mvc way" (i promise, it is!! (*cough*)) - i want to use as much features out of the form framework - so also the unique validator. But under that aspect it would be nice to customize the way the unique validator works as much as possible - e.g. to chose the names of my form fields thas has to be checked against the unique constrait by myself - simply because i want to use my own "form-name-namespace" regardless of the database attribute names. I know my question is somewhat irrelevant for you as symfony-users but merly for developers - but perhaps you got a good idea if and where am wrong in my criticism of the original sf-code and what is the correct way to use the database-unique-validators without screaming about naming conventions: So, what do you think? Thanks and greetings :) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to [email protected] 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 -~----------~----~----~----~------~----~------~--~---
