PHP 클래스 Kdyby\Doctrine\EntityRepository

The first and only rule with EntityRepository is not to ever inherit them, ever. The only valid reason to inherit EntityRepository is to add more common methods to all EntityRepositories in application, when you're creating your own framework (but do we really need to go any deeper than this?).
저자: Filip Procházka ([email protected])
상속: extends Doctrine\ORM\EntityRepository, implements Kdyby\Persistence\QueryExecutor, implements Kdyby\Persistence\Queryable
파일 보기 프로젝트 열기: kdyby/doctrine 1 사용 예제들

공개 메소드들

메소드 설명
__call ( string $name, array $args ) : mixed Call to undefined method.
__callStatic ( string $name, array $args ) : mixed Call to undefined static method.
__get ( string $name ) : mixed Returns property value. Do not call directly.
__isset ( string $name ) : boolean Is property defined?
__set ( string $name, mixed $value ) : void Sets value of a property. Do not call directly.
__unset ( string $name ) : void Access to undeclared property.
countBy ( array $criteria = [] ) : integer
createNativeQuery ( string $sql, Doctrine\ORM\Query\ResultSetMapping $rsm ) : Doctrine\ORM\NativeQuery
createQuery ( string $dql = NULL ) : Doctrine\ORM\Query
createQueryBuilder ( string $alias = NULL, string $indexBy = NULL ) : Kdyby\Doctrine\QueryBuilder
extensionMethod ( $name, null $callback = NULL ) : callable | null Adding method to class.
fetch ( Kdyby\Persistence\Query $queryObject, integer $hydrationMode = AbstractQuery::HYDRATE_OBJECT ) : array | ResultSet
fetchOne ( Kdyby\Persistence\Query $queryObject ) : object
findAssoc ( array $criteria, string $key = NULL ) : array Fetches all records and returns an associative array indexed by key
findBy ( array $criteria, array $orderBy = null, $limit = null, $offset = null )
findOneBy ( array $criteria, array $orderBy = null )
findPairs ( array $criteria, string $value = NULL, array $orderBy = [], string $key = NULL ) : array Fetches all records like $key => $value pairs
getClassMetadata ( ) : Kdyby\Doctrine\Mapping\ClassMetadata
getEntityManager ( ) : EntityManager
getReference ( integer | array $id ) : Doctrine\ORM\Proxy\Proxy
getReflection ( ) : ClassType Access to reflection.
related ( string $relation ) : EntityRepository

비공개 메소드들

메소드 설명
criteriaRequiresDql ( array $criteria ) : boolean
handleException ( Exception $e, Doctrine\ORM\Query $query = NULL, string $message = NULL )
handleQueryException ( Exception $e, Kdyby\Persistence\Query $queryObject )

메소드 상세

__call() 공개 메소드

Call to undefined method.
public __call ( string $name, array $args ) : mixed
$name string
$args array
리턴 mixed

__callStatic() 공개 정적인 메소드

Call to undefined static method.
public static __callStatic ( string $name, array $args ) : mixed
$name string
$args array
리턴 mixed

__get() 공개 메소드

Returns property value. Do not call directly.
public __get ( string $name ) : mixed
$name string
리턴 mixed

__isset() 공개 메소드

Is property defined?
public __isset ( string $name ) : boolean
$name string
리턴 boolean

__set() 공개 메소드

Sets value of a property. Do not call directly.
public __set ( string $name, mixed $value ) : void
$name string
$value mixed
리턴 void

__unset() 공개 메소드

Access to undeclared property.
public __unset ( string $name ) : void
$name string
리턴 void

countBy() 공개 메소드

public countBy ( array $criteria = [] ) : integer
$criteria array
리턴 integer

createNativeQuery() 공개 메소드

public createNativeQuery ( string $sql, Doctrine\ORM\Query\ResultSetMapping $rsm ) : Doctrine\ORM\NativeQuery
$sql string
$rsm Doctrine\ORM\Query\ResultSetMapping
리턴 Doctrine\ORM\NativeQuery

createQuery() 공개 메소드

public createQuery ( string $dql = NULL ) : Doctrine\ORM\Query
$dql string
리턴 Doctrine\ORM\Query

createQueryBuilder() 공개 메소드

public createQueryBuilder ( string $alias = NULL, string $indexBy = NULL ) : Kdyby\Doctrine\QueryBuilder
$alias string
$indexBy string The index for the from.
리턴 Kdyby\Doctrine\QueryBuilder

extensionMethod() 공개 정적인 메소드

Adding method to class.
public static extensionMethod ( $name, null $callback = NULL ) : callable | null
$name
$callback null
리턴 callable | null

fetch() 공개 메소드

public fetch ( Kdyby\Persistence\Query $queryObject, integer $hydrationMode = AbstractQuery::HYDRATE_OBJECT ) : array | ResultSet
$queryObject Kdyby\Persistence\Query
$hydrationMode integer
리턴 array | ResultSet

fetchOne() 공개 메소드

public fetchOne ( Kdyby\Persistence\Query $queryObject ) : object
$queryObject Kdyby\Persistence\Query
리턴 object

findAssoc() 공개 메소드

Fetches all records and returns an associative array indexed by key
public findAssoc ( array $criteria, string $key = NULL ) : array
$criteria array
$key string
리턴 array

findBy() 공개 메소드

public findBy ( array $criteria, array $orderBy = null, $limit = null, $offset = null )
$criteria array
$orderBy array

findOneBy() 공개 메소드

public findOneBy ( array $criteria, array $orderBy = null )
$criteria array
$orderBy array

findPairs() 공개 메소드

Fetches all records like $key => $value pairs
public findPairs ( array $criteria, string $value = NULL, array $orderBy = [], string $key = NULL ) : array
$criteria array parameter can be skipped
$value string mandatory
$orderBy array parameter can be skipped
$key string optional
리턴 array

getClassMetadata() 공개 메소드

public getClassMetadata ( ) : Kdyby\Doctrine\Mapping\ClassMetadata
리턴 Kdyby\Doctrine\Mapping\ClassMetadata

getEntityManager() 공개 메소드

public getEntityManager ( ) : EntityManager
리턴 EntityManager

getReference() 공개 메소드

public getReference ( integer | array $id ) : Doctrine\ORM\Proxy\Proxy
$id integer | array
리턴 Doctrine\ORM\Proxy\Proxy

getReflection() 공개 정적인 메소드

Access to reflection.
public static getReflection ( ) : ClassType
리턴 Nette\Reflection\ClassType