You are here

public function ObjectManager::find in Zircon Profile 8

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

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 vendor/doctrine/common/lib/Doctrine/Common/Persistence/ObjectManagerDecorator.php
Finds an object by its identifier.

File

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