|
@@ 1240-1245 (lines=6) @@
|
| 1237 |
|
// only ReferenceMany collection is scheduled for update |
| 1238 |
|
$this->documentChangeSets[$oid] = array(); |
| 1239 |
|
} |
| 1240 |
|
if ($hasPreUpdateLifecycleCallbacks) { |
| 1241 |
|
$class->invokeLifecycleCallbacks(Events::preUpdate, $document, array( |
| 1242 |
|
new Event\PreUpdateEventArgs($document, $this->dm, $this->documentChangeSets[$oid]) |
| 1243 |
|
)); |
| 1244 |
|
$this->recomputeSingleDocumentChangeSet($class, $document); |
| 1245 |
|
} |
| 1246 |
|
|
| 1247 |
|
if ($hasPreUpdateListeners) { |
| 1248 |
|
$this->evm->dispatchEvent(Events::preUpdate, new Event\PreUpdateEventArgs( |
|
@@ 1306-1311 (lines=6) @@
|
| 1303 |
|
continue; |
| 1304 |
|
} |
| 1305 |
|
|
| 1306 |
|
if ( ! empty($entryClass->lifecycleCallbacks[Events::preUpdate])) { |
| 1307 |
|
$entryClass->invokeLifecycleCallbacks(Events::preUpdate, $entry, array( |
| 1308 |
|
new Event\PreUpdateEventArgs($entry, $this->dm, $this->documentChangeSets[$entryOid]) |
| 1309 |
|
)); |
| 1310 |
|
$this->recomputeSingleDocumentChangeSet($entryClass, $entry); |
| 1311 |
|
} |
| 1312 |
|
if ($hasPreUpdateListeners) { |
| 1313 |
|
$this->evm->dispatchEvent(Events::preUpdate, new Event\PreUpdateEventArgs( |
| 1314 |
|
$entry, $this->dm, $this->documentChangeSets[$entryOid]) |