Closed doctrinebot closed 8 years ago
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?
Comment created by romanb:
Waiting for a reproducable testcase.
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...
Issue was closed with resolution "Cannot Reproduce"
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!?!?