You are here

public static function PersistentObject::setObjectManager in Plug 7

Sets the object manager responsible for all persistent object base classes.

Parameters

ObjectManager|null $objectManager:

Return value

void

2 calls to PersistentObject::setObjectManager()
PersistentObjectTest::setUp in lib/doctrine/common/tests/Doctrine/Tests/Common/Persistence/PersistentObjectTest.php
PersistentObjectTest::testNoObjectManagerSet in lib/doctrine/common/tests/Doctrine/Tests/Common/Persistence/PersistentObjectTest.php

File

lib/doctrine/common/lib/Doctrine/Common/Persistence/PersistentObject.php, line 76

Class

PersistentObject
PersistentObject base class that implements getter/setter methods for all mapped fields and associations by overriding __call.

Namespace

Doctrine\Common\Persistence

Code

public static function setObjectManager(ObjectManager $objectManager = null) {
  self::$objectManager = $objectManager;
}