Projet SunshineAdminBundle

Many to Many and One to Many


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.

  1. Configure in doctrine the relation using annotations.
  2. Add entity and properties to the YML file
  3. Implement the toString() method for each entity
  4. Add the property filterAttribute to the YAML description.

That’s all. The framework will handle the correct rendering for your field by itself.

About the author

Eric Wallet

Add Comment

Click here to post a comment

Votre adresse de messagerie ne sera pas publiée.