[英]persist many to many relation in database symfony2
從表單保留實體時,在數據庫中刷新時出現以下錯誤:
Catchable Fatal Error: Argument 1 passed to Doctrine\Common\Collections\ArrayCollection::__construct() must be an array, object given, called in C:\wamp\www\Symfony\vendor\doctrine\orm\lib\Doctrine\ORM\UnitOfWork.php on line 519 and defined in C:\wamp\www\Symfony\vendor\doctrine\common\lib\Doctrine\Common\Collections\ArrayCollection.php line 48
我想我以對象形式獲取它,但必須以我不理解的數組集合形式
有任何想法嗎????
這可能是錯誤的綁定或實體類配置錯誤。 但是如果沒有更多的代碼,我們就無法真正猜測出了什么問題:)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.