PHP 클래스 Nextras\Orm\Repository\Repository

상속: extends Nette\Object, implements Nextras\Orm\Repository\IRepository
파일 보기 프로젝트 열기: nextras/orm 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$onAfterInsert of callbacks with (IEntity $entity) arguments
$onAfterPersist of callbacks with (IEntity $entity) arguments
$onAfterRemove of callbacks with (IEntity $entity) arguments
$onAfterUpdate of callbacks with (IEntity $entity) arguments
$onBeforeInsert of callbacks with (IEntity $entity) arguments
$onBeforePersist of callbacks with (IEntity $entity) arguments
$onBeforeRemove of callbacks with (IEntity $entity) arguments
$onBeforeUpdate of callbacks with (IEntity $entity) arguments
$onFlush of callbacks with (IEntity[] $persisted, IEntity[] $removed) arguments

보호된 프로퍼티들

프로퍼티 타입 설명
$entityClassName string
$mapper Nextras\Orm\Mapper\IMapper

공개 메소드들

메소드 설명
__call ( $method, $args )
__construct ( Nextras\Orm\Mapper\IMapper $mapper, Nextras\Orm\Repository\IDependencyProvider $dependencyProvider = null )
attach ( Nextras\Orm\Entity\IEntity $entity )
detach ( Nextras\Orm\Entity\IEntity $entity )
doClearIdentityMap ( $areYouSure = null )
doFireEvent ( Nextras\Orm\Entity\IEntity $entity, $event )
doFlush ( )
doPersist ( Nextras\Orm\Entity\IEntity $entity )
doRemove ( Nextras\Orm\Entity\IEntity $entity )
findAll ( )
findBy ( array $conds )
findById ( $ids )
flush ( )
getBy ( array $conds )
getById ( $id )
getEntityClassName ( array $data )
getEntityMetadata ( )
getMapper ( )
getModel ( $need = true )
hydrateEntity ( array $data )
persist ( Nextras\Orm\Entity\IEntity $entity, $withCascade = true )
persistAndFlush ( Nextras\Orm\Entity\IEntity $entity, $withCascade = true )
remove ( $entity, $withCascade = true )
removeAndFlush ( $entity, $withCascade = true )
setModel ( Nextras\Orm\Model\IModel $model )

메소드 상세

__call() 공개 메소드

public __call ( $method, $args )

__construct() 공개 메소드

public __construct ( Nextras\Orm\Mapper\IMapper $mapper, Nextras\Orm\Repository\IDependencyProvider $dependencyProvider = null )
$mapper Nextras\Orm\Mapper\IMapper
$dependencyProvider Nextras\Orm\Repository\IDependencyProvider

attach() 공개 메소드

public attach ( Nextras\Orm\Entity\IEntity $entity )
$entity Nextras\Orm\Entity\IEntity

detach() 공개 메소드

public detach ( Nextras\Orm\Entity\IEntity $entity )
$entity Nextras\Orm\Entity\IEntity

doClearIdentityMap() 공개 메소드

public doClearIdentityMap ( $areYouSure = null )

doFireEvent() 공개 메소드

public doFireEvent ( Nextras\Orm\Entity\IEntity $entity, $event )
$entity Nextras\Orm\Entity\IEntity

doFlush() 공개 메소드

public doFlush ( )

doPersist() 공개 메소드

public doPersist ( Nextras\Orm\Entity\IEntity $entity )
$entity Nextras\Orm\Entity\IEntity

doRemove() 공개 메소드

public doRemove ( Nextras\Orm\Entity\IEntity $entity )
$entity Nextras\Orm\Entity\IEntity

findAll() 공개 메소드

public findAll ( )

findBy() 공개 메소드

public findBy ( array $conds )
$conds array

findById() 공개 메소드

public findById ( $ids )

flush() 공개 메소드

public flush ( )

getBy() 공개 메소드

public getBy ( array $conds )
$conds array

getById() 공개 메소드

public getById ( $id )

getEntityClassName() 공개 메소드

public getEntityClassName ( array $data )
$data array

getEntityMetadata() 공개 메소드

public getEntityMetadata ( )

getMapper() 공개 메소드

public getMapper ( )

getModel() 공개 메소드

public getModel ( $need = true )

hydrateEntity() 공개 메소드

public hydrateEntity ( array $data )
$data array

persist() 공개 메소드

public persist ( Nextras\Orm\Entity\IEntity $entity, $withCascade = true )
$entity Nextras\Orm\Entity\IEntity

persistAndFlush() 공개 메소드

public persistAndFlush ( Nextras\Orm\Entity\IEntity $entity, $withCascade = true )
$entity Nextras\Orm\Entity\IEntity

remove() 공개 메소드

public remove ( $entity, $withCascade = true )

removeAndFlush() 공개 메소드

public removeAndFlush ( $entity, $withCascade = true )

setModel() 공개 메소드

public setModel ( Nextras\Orm\Model\IModel $model )
$model Nextras\Orm\Model\IModel

프로퍼티 상세

$entityClassName 보호되어 있는 프로퍼티

protected string $entityClassName
리턴 string

$mapper 보호되어 있는 프로퍼티

protected IMapper,Nextras\Orm\Mapper $mapper
리턴 Nextras\Orm\Mapper\IMapper

$onAfterInsert 공개적으로 프로퍼티

of callbacks with (IEntity $entity) arguments
public $onAfterInsert

$onAfterPersist 공개적으로 프로퍼티

of callbacks with (IEntity $entity) arguments
public $onAfterPersist

$onAfterRemove 공개적으로 프로퍼티

of callbacks with (IEntity $entity) arguments
public $onAfterRemove

$onAfterUpdate 공개적으로 프로퍼티

of callbacks with (IEntity $entity) arguments
public $onAfterUpdate

$onBeforeInsert 공개적으로 프로퍼티

of callbacks with (IEntity $entity) arguments
public $onBeforeInsert

$onBeforePersist 공개적으로 프로퍼티

of callbacks with (IEntity $entity) arguments
public $onBeforePersist

$onBeforeRemove 공개적으로 프로퍼티

of callbacks with (IEntity $entity) arguments
public $onBeforeRemove

$onBeforeUpdate 공개적으로 프로퍼티

of callbacks with (IEntity $entity) arguments
public $onBeforeUpdate

$onFlush 공개적으로 프로퍼티

of callbacks with (IEntity[] $persisted, IEntity[] $removed) arguments
public $onFlush