|
@@ 1611-1618 (lines=8) @@
|
| 1608 |
|
* |
| 1609 |
|
* @return object|bool The found entity or FALSE. |
| 1610 |
|
*/ |
| 1611 |
|
public function tryGetByIdHash($idHash, $rootClassName) |
| 1612 |
|
{ |
| 1613 |
|
$stringIdHash = (string) $idHash; |
| 1614 |
|
|
| 1615 |
|
return isset($this->identityMap[$rootClassName][$stringIdHash]) |
| 1616 |
|
? $this->identityMap[$rootClassName][$stringIdHash] |
| 1617 |
|
: false; |
| 1618 |
|
} |
| 1619 |
|
|
| 1620 |
|
/** |
| 1621 |
|
* Checks whether an entity is registered in the identity map of this UnitOfWork. |
|
@@ 3012-3019 (lines=8) @@
|
| 3009 |
|
* @return object|bool Returns the entity with the specified identifier if it exists in |
| 3010 |
|
* this UnitOfWork, FALSE otherwise. |
| 3011 |
|
*/ |
| 3012 |
|
public function tryGetById($id, $rootClassName) |
| 3013 |
|
{ |
| 3014 |
|
$idHash = implode(' ', (array) $id); |
| 3015 |
|
|
| 3016 |
|
return isset($this->identityMap[$rootClassName][$idHash]) |
| 3017 |
|
? $this->identityMap[$rootClassName][$idHash] |
| 3018 |
|
: false; |
| 3019 |
|
} |
| 3020 |
|
|
| 3021 |
|
/** |
| 3022 |
|
* Schedules an entity for dirty-checking at commit-time. |