mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
DDC-386: UnitOfWork creates an new ArrayCollection and sometimes will pass an object instead of an array in constructor #481
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @doctrinebot on GitHub (Mar 2, 2010).
Jira issue originally created by user marioman:
sometimes will pass an object instead of an array in constructor. \
$actualData[$name] = new ArrayCollection($actualData[$name]);in this case, you get a
Catchable fatal error: Argument 1 passed to ArrayCollection::_construct() must be an array, object given...i changed the line 468 with follow lines and works fine, but I'm not sure if this is the best solution!?!?
@doctrinebot commented on GitHub (Mar 3, 2010):
Comment created by @guilhermeblanco:
I could not reproduce the issue. Tried with one2one, many2one, one2many and many2many with 0, 1 and N records. Nothing caused this.
So, can you please send me how you achieve this issue, like models, DB data and the piece of code that caused this bug?
@doctrinebot commented on GitHub (Mar 30, 2010):
Comment created by romanb:
Waiting for a reproducable testcase.
@doctrinebot commented on GitHub (Apr 8, 2010):
Comment created by marioman:
sorry, in the meantime i have refactored my project. in the new version, i don´t get this behave. thx please close this ticket...
@doctrinebot commented on GitHub (Apr 8, 2010):
Issue was closed with resolution "Cannot Reproduce"