I do not know what the documentation refers to when it talk about "your model"
To work with collections and the Symfony2 form layer, you can provide an adder
and a remover method. This however only works if the adder method expects one
argument only. This bundle provides composed key-value pairs.
Your model class typically will provide a method like:
I have doctrine based entities and form types in my project, but not models.
@cyclingzealot Your doctrine entity is a model. Model is just the more general term because you can also use other PHP classes which are not Doctrine entities with a form.
I do not know what the documentation refers to when it talk about "your model"
I have doctrine based entities and form types in my project, but not models.