PHP 클래스 Nextras\Orm\Model\Model

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

공개 프로퍼티들

프로퍼티 타입 설명
$onFlush of callbacks with (IEntity[] $persisted, IEntity $removed) arguments

공개 메소드들

메소드 설명
__construct ( array $configuration, Nextras\Orm\Model\IRepositoryLoader $repositoryLoader, MetadataStorage $metadataStorage )
__get ( string $name ) : Nextras\Orm\Repository\IRepository Returns repository by name.
clearIdentityMapAndCaches ( $areYouSure )
flush ( )
getConfiguration ( array $repositories ) : array Creates repository list configuration.
getMetadataStorage ( )
getRepository ( $className )
getRepositoryByName ( $name )
getRepositoryForEntity ( $entity )
hasRepository ( $className )
hasRepositoryByName ( $name )
persist ( Nextras\Orm\Entity\IEntity $entity, $withCascade = true )
persistAndFlush ( Nextras\Orm\Entity\IEntity $entity )
remove ( Nextras\Orm\Entity\IEntity $entity, $withCascade = true )

비공개 메소드들

메소드 설명
getLoadedRepositories ( ) : Nextras\Orm\Repository\IRepository[]

메소드 상세

__construct() 공개 메소드

public __construct ( array $configuration, Nextras\Orm\Model\IRepositoryLoader $repositoryLoader, MetadataStorage $metadataStorage )
$configuration array
$repositoryLoader Nextras\Orm\Model\IRepositoryLoader
$metadataStorage MetadataStorage

__get() 공개 메소드

Returns repository by name.
public __get ( string $name ) : Nextras\Orm\Repository\IRepository
$name string
리턴 Nextras\Orm\Repository\IRepository

clearIdentityMapAndCaches() 공개 메소드

public clearIdentityMapAndCaches ( $areYouSure )

flush() 공개 메소드

public flush ( )

getConfiguration() 공개 정적인 메소드

Creates repository list configuration.
public static getConfiguration ( array $repositories ) : array
$repositories array
리턴 array

getMetadataStorage() 공개 메소드

public getMetadataStorage ( )

getRepository() 공개 메소드

public getRepository ( $className )

getRepositoryByName() 공개 메소드

public getRepositoryByName ( $name )

getRepositoryForEntity() 공개 메소드

public getRepositoryForEntity ( $entity )

hasRepository() 공개 메소드

public hasRepository ( $className )

hasRepositoryByName() 공개 메소드

public hasRepositoryByName ( $name )

persist() 공개 메소드

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

persistAndFlush() 공개 메소드

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

remove() 공개 메소드

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

프로퍼티 상세

$onFlush 공개적으로 프로퍼티

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