You are here

public function ObjectManager::find in Plug 7

Finds an object by its identifier.

This is just a convenient shortcut for getRepository($className)->find($id).

Parameters

string $className The class name of the object to find.:

mixed $id The identity of the object to find.:

Return value

object The found object.

1 method overrides ObjectManager::find()
ObjectManagerDecorator::find in lib/doctrine/common/lib/Doctrine/Common/Persistence/ObjectManagerDecorator.php
Finds an object by its identifier.

File

lib/doctrine/common/lib/Doctrine/Common/Persistence/ObjectManager.php, line 42

Class

ObjectManager
Contract for a Doctrine persistence layer ObjectManager class to implement.

Namespace

Doctrine\Common\Persistence

Code

public function find($className, $id);