프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$onFlush | of callbacks with (IEntity[] $persisted, IEntity $removed) arguments |
메소드 | 설명 | |
---|---|---|
__construct ( array $configuration, Nextras\Orm\Model\IRepositoryLoader $repositoryLoader, |
||
__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[] |
public __construct ( array $configuration, Nextras\Orm\Model\IRepositoryLoader $repositoryLoader, |
||
$configuration | array | |
$repositoryLoader | Nextras\Orm\Model\IRepositoryLoader | |
$metadataStorage |
public static getConfiguration ( array $repositories ) : array | ||
$repositories | array | |
리턴 | array |
public persist ( Nextras\Orm\Entity\IEntity $entity, $withCascade = true ) | ||
$entity | Nextras\Orm\Entity\IEntity |
public persistAndFlush ( Nextras\Orm\Entity\IEntity $entity ) | ||
$entity | Nextras\Orm\Entity\IEntity |
public remove ( Nextras\Orm\Entity\IEntity $entity, $withCascade = true ) | ||
$entity | Nextras\Orm\Entity\IEntity |