Method | Description | |
---|---|---|
__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 ) |
Method | Description | |
---|---|---|
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 | |
return | Nextras\Orm\Entity\IEntity |
public getAll ( ) : Nextras\Orm\Entity\IEntity[] | ||
return | Nextras\Orm\Entity\IEntity[] |