Category: many-to-one

Symfony Accessing to parent entity inside entity class

In Symfony 5, I’ve created 2 entities related with a ManyToOne relation : Project is the parent, Serie is the child. Project entity : namespace AppEntity; use DoctrineCommonCollectionsArrayCollection; use DoctrineCommonCollectionsCollection; use DoctrineORMMapping as ORM; /** * @ORMEntity(repositoryClass=”AppRepositorySerieRepository”) */ class Serie…