You are here

public function ObjectManagerDecorator::contains in Plug 7

Checks if the object is part of the current UnitOfWork and therefore managed.

Parameters

object $object:

Return value

bool

Overrides ObjectManager::contains

File

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

Class

ObjectManagerDecorator
Base class to simplify ObjectManager decorators

Namespace

Doctrine\Common\Persistence

Code

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