You are here

public static function PersistentObject::setObjectManager in Zircon Profile 8

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

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 vendor/doctrine/common/tests/Doctrine/Tests/Common/Persistence/PersistentObjectTest.php
PersistentObjectTest::testNoObjectManagerSet in vendor/doctrine/common/tests/Doctrine/Tests/Common/Persistence/PersistentObjectTest.php

File

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