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

后端 未结 8 1328
悲哀的现实
悲哀的现实 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 23:08

    Maybe you forgot in the __construct() of Service class and Tag class to initialize $tagList and $serviceList like this ?

    $this->tagList = new ArrayCollection();

    $this->serviceList = new ArrayCollection();

提交回复
热议问题