2013-05-15 66 views
0

当从形式坚持我的实体,我得到了数据库冲洗时出现以下错误:坚持许多人在数据库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 

我想我得到它的物体形式,但它必须是在阵列收集表格 我无法理解

任何想法????

回答

0

它可以既是错结合或一个实体类配置错误。但是,如果没有从你更多的代码,我们真的不能猜什么错:)

+0

这应该是一个评论 – DonCallisto

+0

哎呀编辑这一切在这种情况下......但我不能对用户的帖子添加评论,我想念smthg吗? –

+0

是的,你缺少25个代表处点http://stackoverflow.com/privileges/comment :) – cheesemacfly