Finds an object by its primary key / identifier.
Parameters
int $id The identifier.:
Return value
object The object.
File
- drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Persistence/ObjectRepository.php, line 39
Class
- ObjectRepository
- Contract for a Doctrine persistence layer ObjectRepository class to implement.
Namespace
Doctrine\Common\Persistence
Code
function find($id);