object = $object; $this->objectManager = $objectManager; } /** * Retrieves the associated entity. * * @deprecated * * @return object */ public function getEntity() { Deprecation::trigger( 'doctrine/persistence', 'https://github.com/doctrine/common/pull/222', '%s is deprecated and will be removed in 3.0, use getObject() instead', __METHOD__ ); return $this->object; } /** * Retrieves the associated object. * * @return object */ public function getObject() { return $this->object; } /** * Retrieves the associated ObjectManager. * * @return ObjectManager * @psalm-return TObjectManager */ public function getObjectManager() { return $this->objectManager; } }