Burgov / KeyValueFormBundle

A form type for managing key-value pairs
MIT License
44 stars 32 forks source link

Model vs Entity vs FormTypes #6

Closed cyclingzealot closed 9 years ago

cyclingzealot commented 9 years ago

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.

hacfi commented 9 years ago

@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.

cyclingzealot commented 9 years ago

Thank you for the quick answer.