Symfony 4 : doctrine, relationships and twig
Symfony 4 : doctrine, relationships and twig I'm currently working on my first symfony 4 project and I'm having a problem with my twig templating. First of all here is a UML diagram of my created objects. And my layout should look sorta like this : Here are my entities : Region <?php namespace AppEntity; use DoctrineCommonCollectionsArrayCollection; use DoctrineCommonCollectionsCollection; use DoctrineORMMapping as ORM; /** * @ORMEntity(repositoryClass="AppRepositoryRegionRepository") */ class Region { /** * @ORMId() * @ORMGeneratedValue() * @ORMColumn(type="integer") */ private $id; /** * @ORMColumn(type="string", length=255) */ private $designation; /** * @ORMOneToMany(targetEntity="AppEntityCountry", mappedBy="region", orphanRemoval=true) */ private $countries; /** * @ORMColumn(type="string", length=255) */ private $initials; ...
