PHP Class Doctrine\OXM\XmlEntityRepository

Inheritance: implements Doctrine\Common\Persistence\ObjectRepository
显示文件 Open project: doctrine/oxm

Protected Properties

Property Type Description
$class Doctrine\OXM\Mapping\ClassMetadata
$entityName string
$xem XmlEntityManager

Public Methods

Method Description
__construct ( XmlEntityManager $xem, ClassMetadata $class ) Initializes a new XmlEntityRepository.
clear ( ) Clears the repository, causing all managed entities to become detached.
find ( $id, integer $lockMode = LockMode::NONE, integer $lockVersion = null ) : object Finds an entity by its identifier.
findAll ( ) : mixed Finds all objects in the repository.
findBy ( array $criteria, array $orderBy = null, $limit = null, $offset = null ) : mixed Finds objects by a set of criteria.
findOneBy ( array $criteria ) : object Finds a single object by a set of criteria.

Method Details

__construct() public method

Initializes a new XmlEntityRepository.
public __construct ( XmlEntityManager $xem, ClassMetadata $class )
$xem XmlEntityManager
$class Doctrine\OXM\Mapping\ClassMetadata

clear() public method

Clears the repository, causing all managed entities to become detached.
public clear ( )

find() public method

Finds an entity by its identifier.
public find ( $id, integer $lockMode = LockMode::NONE, integer $lockVersion = null ) : object
$id The identifier.
$lockMode integer
$lockVersion integer
return object The entity.

findAll() public method

Finds all objects in the repository.
public findAll ( ) : mixed
return mixed The objects.

findBy() public method

Finds objects by a set of criteria.
public findBy ( array $criteria, array $orderBy = null, $limit = null, $offset = null ) : mixed
$criteria array
$orderBy array
return mixed The objects.

findOneBy() public method

Finds a single object by a set of criteria.
public findOneBy ( array $criteria ) : object
$criteria array
return object The object.

Property Details

$class protected_oe property

protected ClassMetadata,Doctrine\OXM\Mapping $class
return Doctrine\OXM\Mapping\ClassMetadata

$entityName protected_oe property

protected string $entityName
return string

$xem protected_oe property

protected XmlEntityManager,Doctrine\OXM $xem
return XmlEntityManager