Embed a Collection of Forms Error: Could not determine access type for property

后端 未结 8 1541
悲哀的现实
悲哀的现实 2021-02-18 22:34

I am trying to embed collection of Tag forms to Service form, according to this tutorial. Tag and Service entities have many-

8条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-18 22:53

    This seems like an error with your constructor. Try this :

    public function __construct()
    {
        $this-> tagList = new \Doctrine\Common\Collections\ArrayCollection();
    }
    

提交回复
热议问题