Doctrine\Common\Persistence\ObjectRepository
Contract for a Doctrine persistence layer ObjectRepository class to implement.
- Author: Benjamin Eberlei <kontakt@beberlei.de>
- License: http://www.opensource.org/licenses/lgpl-license.php LGPL
Synopsis
interface ObjectRepository
{
- // methods
- public find()
- public mixed findAll()
- public mixed findBy()
- public findOneBy()
- public string getClassName()
Methods
public
- find() — Finds an object by its primary key / identifier.
- findAll() — Finds all objects in the repository.
- findBy() — Finds objects by a set of criteria.
- findOneBy() — Finds a single object by a set of criteria.
- getClassName() — Returns the class name of the object managed by the repository