The process for mapping objects with …ToMany relations is the same than the …ToOne relations.
Please, read the documentation of the toOne relations and apply the same rules.
- Configure in doctrine the relation using annotations.
- Add entity and properties to the YML file
- Implement the toString() method for each entity
- Add the property filterAttribute to the YAML description.
That’s all. The framework will handle the correct rendering for your field by itself.