Method |
Description |
|
attach ( Nextras\Orm\Entity\IEntity $entity ) |
Attaches entity to repository. |
|
detach ( Nextras\Orm\Entity\IEntity $entity ) |
Detaches entity from repository. |
|
doClearIdentityMap ( $areYouSure ) |
DO NOT CALL THIS METHOD DIRECTLY. |
|
doFireEvent ( Nextras\Orm\Entity\IEntity $entity, string $event ) : void |
DO NOT CALL THIS METHOD DIRECTLY. |
|
doFlush ( ) : [IEntity[], |
DO NOT CALL THIS METHOD DIRECTLY. |
|
doPersist ( Nextras\Orm\Entity\IEntity $entity ) |
DO NOT CALL THIS METHOD DIRECTLY. |
|
doRemove ( Nextras\Orm\Entity\IEntity $entity ) |
DO NOT CALL THIS METHOD DIRECTLY. |
|
findAll ( ) : Nextras\Orm\Collection\ICollection |
Returns entity collection with all entities. |
|
findBy ( array $where ) : Nextras\Orm\Collection\ICollection |
Returns entity collection filtered by conditions. |
|
findById ( mixed[] $primaryValues ) : Nextras\Orm\Collection\ICollection |
Returns entities by primary values. |
|
flush ( ) |
Flushes all persisted changes in all repositories. |
|
getBy ( array $conds ) : Nextras\Orm\Entity\IEntity | null |
Returns IEntity filtered by conditions |
|
getById ( mixed $primaryValue ) : Nextras\Orm\Entity\IEntity |
Returns entity by primary value. |
|
getEntityClassName ( array $data ) : string |
Returns entity class name. |
|
getEntityClassNames ( ) : string[] |
Returns possible entity class names for current repository. |
|
getEntityMetadata ( ) : EntityMetadata |
Returns entity metadata. |
|
getMapper ( ) : Nextras\Orm\Mapper\IMapper |
|
|
getModel ( boolean $need = true ) : Nextras\Orm\Model\IModel |
|
|
hydrateEntity ( array $data ) : Nextras\Orm\Entity\IEntity |
Hydrates entity. |
|
persist ( Nextras\Orm\Entity\IEntity $entity, boolean $withCascade = true ) : mixed |
|
|
persistAndFlush ( Nextras\Orm\Entity\IEntity $entity, boolean $withCascade = true ) : mixed |
|
|
remove ( Nextras\Orm\Entity\IEntity | mixed $entity, boolean $withCascade = true ) : Nextras\Orm\Entity\IEntity |
|
|
removeAndFlush ( Nextras\Orm\Entity\IEntity | mixed $entity, boolean $withCascade = true ) : Nextras\Orm\Entity\IEntity |
|
|
setModel ( Nextras\Orm\Model\IModel $model ) |
|
|