PHP 클래스 Kdyby\Doctrine\EntityManager

저자: Filip Procházka ([email protected])
상속: extends Doctrine\ORM\EntityManager, 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.
bindTracyPanel ( Kdyby\Doctrine\Diagnostics\Panel $panel )
clear ( $entityName = null ) : EntityManager
close ( )
create ( Doctrine\DBAL\Connection | array $conn, Doctrine\ORM\Configuration $config, Doctrine\Common\EventManager $eventManager = NULL ) : EntityManager Factory method to create EntityManager instances.
createQueryBuilder ( $alias = NULL, $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 | null
flush ( object | array $entity = null ) : EntityManager
getReflection ( ) : ClassType Access to reflection.
newHydrator ( integer $hydrationMode ) : Doctrine\ORM\Internal\Hydration\AbstractHydrator
persist ( object | array $entity ) : EntityManager
remove ( object | array $entity ) : EntityManager
safePersist ( $entity ) : boolean | object Tries to persist the given entity and returns FALSE if an unique constaint was violated.

보호된 메소드들

메소드 설명
__construct ( Doctrine\DBAL\Connection $conn, Doctrine\ORM\Configuration $config, Doctrine\Common\EventManager $eventManager )

비공개 메소드들

메소드 설명
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

__construct() 보호된 메소드

protected __construct ( Doctrine\DBAL\Connection $conn, Doctrine\ORM\Configuration $config, Doctrine\Common\EventManager $eventManager )
$conn Doctrine\DBAL\Connection
$config Doctrine\ORM\Configuration
$eventManager Doctrine\Common\EventManager

__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

bindTracyPanel() 공개 메소드

public bindTracyPanel ( Kdyby\Doctrine\Diagnostics\Panel $panel )
$panel Kdyby\Doctrine\Diagnostics\Panel

clear() 공개 메소드

public clear ( $entityName = null ) : EntityManager
리턴 EntityManager

close() 공개 메소드

public close ( )

create() 공개 정적인 메소드

Factory method to create EntityManager instances.
public static create ( Doctrine\DBAL\Connection | array $conn, Doctrine\ORM\Configuration $config, Doctrine\Common\EventManager $eventManager = NULL ) : EntityManager
$conn Doctrine\DBAL\Connection | array
$config Doctrine\ORM\Configuration
$eventManager Doctrine\Common\EventManager
리턴 EntityManager

createQueryBuilder() 공개 메소드

public createQueryBuilder ( $alias = NULL, $indexBy = NULL ) : Kdyby\Doctrine\QueryBuilder
리턴 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 | null
$queryObject Kdyby\Persistence\Query
리턴 object | null

flush() 공개 메소드

public flush ( object | array $entity = null ) : EntityManager
$entity object | array
리턴 EntityManager

getReflection() 공개 정적인 메소드

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

newHydrator() 공개 메소드

public newHydrator ( integer $hydrationMode ) : Doctrine\ORM\Internal\Hydration\AbstractHydrator
$hydrationMode integer
리턴 Doctrine\ORM\Internal\Hydration\AbstractHydrator

persist() 공개 메소드

public persist ( object | array $entity ) : EntityManager
$entity object | array
리턴 EntityManager

remove() 공개 메소드

public remove ( object | array $entity ) : EntityManager
$entity object | array
리턴 EntityManager

safePersist() 공개 메소드

Warning: On success you must NOT use the passed entity further in your application. Use the returned one instead!
public safePersist ( $entity ) : boolean | object
$entity
리턴 boolean | object