You are here

public function ObjectManagerAware::injectObjectManager in Plug 7

Injects responsible ObjectManager and the ClassMetadata into this persistent object.

Parameters

ObjectManager $objectManager:

ClassMetadata $classMetadata:

Return value

void

1 method overrides ObjectManagerAware::injectObjectManager()
PersistentObject::injectObjectManager in lib/doctrine/common/lib/Doctrine/Common/Persistence/PersistentObject.php
Injects the Doctrine Object Manager.

File

lib/doctrine/common/lib/Doctrine/Common/Persistence/ObjectManagerAware.php, line 50

Class

ObjectManagerAware
Makes a Persistent Objects aware of its own object-manager.

Namespace

Doctrine\Common\Persistence

Code

public function injectObjectManager(ObjectManager $objectManager, ClassMetadata $classMetadata);