Commit 253aef2
don't call EntityManager::initializeObject() with scalar values
Calling initializeObject() with a scalar value (e.g. the id of the
associated entity) was a no-op call with Doctrine ORM 2 where no type
was set with the method signature. The UnitOfWork which was called
with the given argument ignored anything that was not an InternalProxy
or a PersistentCollection instance.
Calls like these now break with Doctrine ORM 3 as the method's argument
is typed as object now.1 parent 22f9d7c commit 253aef2
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
| 107 | + | |
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| |||
0 commit comments