DataMapper
- Full name:
\Qubus\Expressive\DataMapper\DataMapper
Methods
findAll
public findAll(string $orderBy = '', array{direction?: string, limit?: int, offset?: int} $options = []): array<int|string,\Qubus\Expressive\DataMapper\SerializableEntity>
Parameters:
| Parameter | Type | Description |
|---|---|---|
$orderBy | string | |
$options | array{direction?: string, limit?: int, offset?: int} |
findOne
Parameters:
| Parameter | Type | Description |
|---|---|---|
$id | int|string |
create
public create(\Qubus\Expressive\DataMapper\SerializableEntity $entity): \Qubus\Expressive\DataMapper\SerializableEntity
Parameters:
| Parameter | Type | Description |
|---|---|---|
$entity | \Qubus\Expressive\DataMapper\SerializableEntity |
update
public update(\Qubus\Expressive\DataMapper\SerializableEntity $entity): \Qubus\Expressive\DataMapper\SerializableEntity
Parameters:
| Parameter | Type | Description |
|---|---|---|
$entity | \Qubus\Expressive\DataMapper\SerializableEntity |
delete
Parameters:
| Parameter | Type | Description |
|---|---|---|
$id | int|string |