Метод | Описание | |
---|---|---|
clearIdentityMapAndCaches ( $areYouSure ) | USE ONLY IF YOU ARE SURE YOU KNOW WHAT ARE YOU DOING. | |
flush ( ) : void | Flushes all persisted changes in repositories. | |
getMetadataStorage ( ) : |
Returns entity metadata storage. | |
getRepository ( string $className ) : Nextras\Orm\Repository\IRepository | Returns repository by repository class. | |
getRepositoryByName ( string $name ) : Nextras\Orm\Repository\IRepository | Returns repository by repository name. | |
getRepositoryForEntity ( Nextras\Orm\Entity\IEntity | string $entity ) : Nextras\Orm\Repository\IRepository | Returns repository associated for entity type. | |
hasRepository ( string $className ) : boolean | Returns true if repository class is attached to model. | |
hasRepositoryByName ( string $name ) : boolean | Returns true if repository with name is attached to model. | |
persist ( Nextras\Orm\Entity\IEntity $entity, $withCascade = true ) : Nextras\Orm\Entity\IEntity | Persist the entity with cascade. | |
persistAndFlush ( Nextras\Orm\Entity\IEntity $entity ) : Nextras\Orm\Entity\IEntity | Persist the entity with cascade and flushes the model. | |
remove ( Nextras\Orm\Entity\IEntity $entity, boolean $withCascade = true ) : mixed |
public clearIdentityMapAndCaches ( $areYouSure ) |
public getMetadataStorage ( ) : |
||
Результат |
public getRepository ( string $className ) : Nextras\Orm\Repository\IRepository | ||
$className | string | |
Результат | Nextras\Orm\Repository\IRepository |
public getRepositoryByName ( string $name ) : Nextras\Orm\Repository\IRepository | ||
$name | string | |
Результат | Nextras\Orm\Repository\IRepository |
public getRepositoryForEntity ( Nextras\Orm\Entity\IEntity | string $entity ) : Nextras\Orm\Repository\IRepository | ||
$entity | Nextras\Orm\Entity\IEntity | string | |
Результат | Nextras\Orm\Repository\IRepository |
public hasRepository ( string $className ) : boolean | ||
$className | string | |
Результат | boolean |
public hasRepositoryByName ( string $name ) : boolean | ||
$name | string | |
Результат | boolean |
public persist ( Nextras\Orm\Entity\IEntity $entity, $withCascade = true ) : Nextras\Orm\Entity\IEntity | ||
$entity | Nextras\Orm\Entity\IEntity | |
Результат | Nextras\Orm\Entity\IEntity |
public persistAndFlush ( Nextras\Orm\Entity\IEntity $entity ) : Nextras\Orm\Entity\IEntity | ||
$entity | Nextras\Orm\Entity\IEntity | |
Результат | Nextras\Orm\Entity\IEntity |