You are here

public function ObjectManagerAware::injectObjectManager in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/doctrine/common/lib/Doctrine/Common/Persistence/ObjectManagerAware.php \Doctrine\Common\Persistence\ObjectManagerAware::injectObjectManager()

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 vendor/doctrine/common/lib/Doctrine/Common/Persistence/PersistentObject.php
Injects the Doctrine Object Manager.

File

vendor/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);