/** * {@inheritdoc} */ public function wakeUpObject(IObject $object) { $collectionName = $object->getCollectionName(); $collection = $this->getCollectionManager()->getCollection($collectionName); $type = $collection->getMetadata()->getType($object->getTypeName()); $this->objectFactory->wakeUpObject($object, $collection, $type); if (!isset($this->objectsById[$collectionName])) { $this->objectsById[$collectionName] = []; } $this->objectsById[$collectionName][$object->getId()] = $object; $this->objectsByGuid[$object->getGUID()] = $object; return $this; }