PdoDataMapper
- Full name:
\Qubus\Expressive\DataMapper\PdoDataMapper
- This class implements:
\Qubus\Expressive\DataMapper\DataMapper
Properties
entity
table
columns
connection
Methods
__construct
Parameters:
Parameter | Type | Description |
---|---|---|
$connection | \Qubus\Expressive\Connection | |
$entity | string |
Throws:
getPdo
queryBuilder
hydrate
Parameters:
Parameter | Type | Description |
---|---|---|
$data | array |
findAll
Parameters:
Parameter | Type | Description |
---|---|---|
$orderBy | string | |
$options | array |
findAllBy
public findAllBy(string $column, string $value, string $orderBy = '', array $options = []): array
Parameters:
Parameter | Type | Description |
---|---|---|
$column | string | |
$value | string | |
$orderBy | string | |
$options | array |
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 |
buildSelectString
buildOrderByString
Parameters:
Parameter | Type | Description |
---|---|---|
$orderBy | string | |
$direction | string |
buildLimitOffsetString
Parameters:
Parameter | Type | Description |
---|---|---|
$limit | int | |
$offset | int |
buildInsertString
buildUpdateString
buildDeleteString
mapRowToObject
Parameters:
Parameter | Type | Description |
---|---|---|
$row | array |
Automatically generated on 2025-10-13