php - persist many to many relation in database symfony2 -
when persisting entity form, following error when flushing in database :
catchable fatal error: argument 1 passed doctrine\common\collections\arraycollection::__construct() must array, object given, called in c:\wamp\www\symfony\vendor\doctrine\orm\lib\doctrine\orm\unitofwork.php on line 519 , defined in c:\wamp\www\symfony\vendor\doctrine\common\lib\doctrine\common\collections\arraycollection.php line 48
i think getting in object form must in array collection form can not understand
any ideas????
it may both wrong binding or entity class misconfiguration. without more code you, can't guess what's going wrong :)
Comments
Post a Comment