You are here

public function ObjectManagerDecorator::merge in Plug 7

Merges the state of a detached object into the persistence context of this ObjectManager and returns the managed copy of the object. The object passed to merge will not become associated/managed with this ObjectManager.

Parameters

object $object:

Return value

object

Overrides ObjectManager::merge

File

lib/doctrine/common/lib/Doctrine/Common/Persistence/ObjectManagerDecorator.php, line 64

Class

ObjectManagerDecorator
Base class to simplify ObjectManager decorators

Namespace

Doctrine\Common\Persistence

Code

public function merge($object) {
  return $this->wrapped
    ->merge($object);
}