| @@ 312-322 (lines=11) @@ | ||
| 309 | } |
|
| 310 | } |
|
| 311 | ||
| 312 | private function clearEntityInsertions($entity = null) { |
|
| 313 | if ($entity === null) { |
|
| 314 | $this->entityInsertions = []; |
|
| 315 | } else { |
|
| 316 | $oid = spl_object_hash($entity); |
|
| 317 | if (isset($this->entityInsertions[$oid])) { |
|
| 318 | unset($this->entityInsertions[$oid]); |
|
| 319 | } |
|
| 320 | } |
|
| 321 | ||
| 322 | } |
|
| 323 | ||
| 324 | private function clearEntityUpdate($entity = null) { |
|
| 325 | if ($entity === null) { |
|
| @@ 324-334 (lines=11) @@ | ||
| 321 | ||
| 322 | } |
|
| 323 | ||
| 324 | private function clearEntityUpdate($entity = null) { |
|
| 325 | if ($entity === null) { |
|
| 326 | $this->entityUpdates = []; |
|
| 327 | } else { |
|
| 328 | $oid = spl_object_hash($entity); |
|
| 329 | if (isset($this->entityUpdates[$oid])) { |
|
| 330 | unset($this->entityUpdates[$oid]); |
|
| 331 | } |
|
| 332 | } |
|
| 333 | ||
| 334 | } |
|
| 335 | ||
| 336 | public function delete($entity) { |
|
| 337 | if(!is_object($entity)){ |
|
| @@ 345-355 (lines=11) @@ | ||
| 342 | $this->entitiesCommitOrder[] = get_class($entity); |
|
| 343 | } |
|
| 344 | ||
| 345 | private function clearEntityDeletions($entity = null) { |
|
| 346 | if ($entity === null) { |
|
| 347 | $this->entityDeletions = []; |
|
| 348 | } else { |
|
| 349 | $oid = spl_object_hash($entity); |
|
| 350 | if (isset($this->entityDeletions[$oid])) { |
|
| 351 | unset($this->entityDeletions[$oid]); |
|
| 352 | } |
|
| 353 | } |
|
| 354 | ||
| 355 | } |
|
| 356 | ||
| 357 | /** |
|
| 358 | * @return string[] |
|