Doctrine - OneToMany relation, all result row doesn't fetch in object

后端 未结 2 1409
难免孤独
难免孤独 2020-12-12 03:46

I try to get all my objects DemandCab with their children object (DecisionCab).

My 2 entities

/**
 * DemandCab.
 *
 * @ORM\\Table()
 * @ORM\\Entity(r         


        
2条回答
  •  时光取名叫无心
    2020-12-12 04:04

    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

提交回复
热议问题