I have a problem with the validation of Symfony. I have a form which is of the type User and the user maps some other stuff (like Addresses, Phones etc.)
Now I want to force the creator of the user that he makes one of the Addresses/Phones the primary one (the entity has a field for that).
How can I solve this? So only one of the OneToMany Entitys (one of the Addresses) needs to be a primary one. And assure that it will be always at least one.