I try to get all my objects DemandCab with their children object (DecisionCab).
My 2 entities
/** * DemandCab. * * @ORM\\Table() * @ORM\\Entity(r
First you have initialize your class with the relation ManyToOne with an ArrayCollection.
And you don't need any of this 'DemandCabRepository'. All the work is done by Doctrine