jjzjj

placeServices

全部标签

php - Doctrine manyToMany 返回 PersistentCollection 而不是 ArrayCollection

我正在使用Symfony3.1和Doctrine2.5。我一如既往地设置了一个多对多关系:manyToMany:placeServices:targetEntity:Acme\MyBundle\Entity\PlaceServicejoinTable:name:place_place_servicejoinColumns:place_id:referencedColumnName:idinverseJoinColumns:place_service_id:referencedColumnName:id并向我的实体添加方法protected$placeServices;...public

php - Doctrine manyToMany 返回 PersistentCollection 而不是 ArrayCollection

我正在使用Symfony3.1和Doctrine2.5。我一如既往地设置了一个多对多关系:manyToMany:placeServices:targetEntity:Acme\MyBundle\Entity\PlaceServicejoinTable:name:place_place_servicejoinColumns:place_id:referencedColumnName:idinverseJoinColumns:place_service_id:referencedColumnName:id并向我的实体添加方法protected$placeServices;...public