My main concern with symfony today is about validation and fillin with arrays of datas. I need to use a lot of forms with 1-n entries for an object (for exemple users that contribute to a project, with roles, etc.) I must allow input of more than one value at the time. When post this form, the first problem is the validation. The YAML file doesn't handle properly values with array syntax is the key is empty (for example: user_id[]) So I need to do a custom validator called from another field. It's not a big problem as there's at least a hidden field but it's very clean. The second problem occurs when there's an error in the form: symfony fillin mechanism cannot fill this type of datas because the fillin process relies on parsing of the output XHTML and fill the widgets form based on their name attribute, which, in this case, is multiple. So an error is raised when I allow the fillin for this type of fields.
Nautile On 10 mai, 19:26, Lukas Kahwe Smith <[EMAIL PROTECTED]> wrote: > Dave Dash wrote: > > Another limitation of the YML is there's no support for propel's > > inheritance... I didn't even no that this existed until I started a > > project with another symfony developer. Had I known about this, I could > > have saved myself from making a lot of extra tables. > > Speaking of propel. I would prefer moving to Doctrine as the default as > I rather want an ORM that knows what a join is without having to teach > it myself ;) > > regards, > Lukas > > PS: Just because I am the one posting to this list the most, does not > mean that I think Symfony is bad .. I just see some room for > improvements, but I think (aside from the CS) its the best foundation to > improve from. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony developers" 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-devs?hl=en -~----------~----~----~----~------~----~------~--~---
