Embedding relations in Symfony


This quick post describes a necessary step in embedding a relation in a Symfony 1.4 form.
If you have followed Symfony’s official documentation and forums regarding embedding relations in a form, you may have already seen an example of product and productPhoto forms in a single form. Read more…

Symfony form conditional validation with PostValidators


This post describes how to use Symfony postValidators to create conditional validation of the form.
In this example I’m checking for user_type variable that can be set to person or firm value. If variable user_type has value person, the form should have one set of required fields, and another set for value firm. Read more…