Метод | Описание | |
---|---|---|
__construct ( Nextras\Orm\Repository\IRepository $repository, Nextras\Orm\Repository\IDependencyProvider $dependencyProvider = null ) | ||
add ( Nextras\Orm\Entity\IEntity $entity ) | ||
check ( Nextras\Orm\Entity\IEntity $entity ) | ||
create ( $data ) | ||
destroyAllEntities ( ) | ||
getAll ( ) : Nextras\Orm\Entity\IEntity[] | ||
getById ( $id ) | ||
hasById ( $id ) | ||
remove ( $id ) |
Метод | Описание | |
---|---|---|
createEntity ( array $data ) : Nextras\Orm\Entity\IEntity |
public __construct ( Nextras\Orm\Repository\IRepository $repository, Nextras\Orm\Repository\IDependencyProvider $dependencyProvider = null ) | ||
$repository | Nextras\Orm\Repository\IRepository | |
$dependencyProvider | Nextras\Orm\Repository\IDependencyProvider |
public add ( Nextras\Orm\Entity\IEntity $entity ) | ||
$entity | Nextras\Orm\Entity\IEntity |
public check ( Nextras\Orm\Entity\IEntity $entity ) | ||
$entity | Nextras\Orm\Entity\IEntity |
protected createEntity ( array $data ) : Nextras\Orm\Entity\IEntity | ||
$data | array | |
Результат | Nextras\Orm\Entity\IEntity |
public getAll ( ) : Nextras\Orm\Entity\IEntity[] | ||
Результат | Nextras\Orm\Entity\IEntity[] |