Par un détour à Yoda

{ }


Aller au contenu | Aller au menu | Aller à la recherche

Mot-clé - form

Symfony: Validate fields depending of

It's possible, when validating a form, to check if a field is correct dependently of an other field's value. First, in your configure method, after the declaration of your validators, add :... lire la suite

[Symfony] Overwrite a value in a form

It happen sometimes that you have to set/override a value within a form but without using a hidden field (that can be overridden) Here is a short solution to set the user id in the object we are going to save. Let's say... lire la suite