52 $this->objectContainer = $container;
67 $this->reconstitutedEntities->attach($entity);
78 $this->reconstitutedEntities->detach($oldEntity);
79 $this->reconstitutedEntities->attach($newEntity);
89 if ($this->reconstitutedEntities->contains($entity)) {
90 $this->reconstitutedEntities->detach($entity);
112 return $this->reconstitutedEntities->contains($entity);
125 return $this->objectMap->contains($object);
163 return $this->objectMap[$object];
176 $this->objectMap[$object] = $identifier;
177 $this->identifierMap[$this->
getClassIdentifier(get_class($object))][$identifier] = $object;
187 unset($this->identifierMap[$this->
getClassIdentifier(get_class($object))][$this->objectMap[$object]]);
188 $this->objectMap->detach($object);
197 $this->identifierMap = [];
198 $this->objectMap =
new ObjectStorage();
199 $this->reconstitutedEntities =
new ObjectStorage();
211 return strtolower($this->objectContainer->getImplementationClassName($className));