AS_ARRAY
AS_ARRAY
Constants to set individual row data type
Abstract record class
$rowGateway : \Pop\Db\Gateway\Row
Row gateway
$tableGateway : \Pop\Db\Gateway\Table
Table gateway
setTable(string $table) : \Pop\Db\Record\AbstractRecord
Set the table
| string | $table |
setPrefix(string $prefix) : \Pop\Db\Record\AbstractRecord
Set the table prefix
| string | $prefix |
setPrimaryKeys(array $keys) : \Pop\Db\Record\AbstractRecord
Set the primary keys
| array | $keys |
addWith(string $name, array $options = null) : \Pop\Db\Record\AbstractRecord
Set with relationships
| string | $name | |
| array | $options |
getWithRelationships(boolean $eager = true) : \Pop\Db\Record\AbstractRecord
Get with relationships
| boolean | $eager |
setRelationship(string $name, mixed $relationship) : \Pop\Db\Record\AbstractRecord
Set relationship
| string | $name | |
| mixed | $relationship |
getRowGateway() : \Pop\Db\Gateway\Row
Get the row gateway
getTableGateway() : \Pop\Db\Gateway\Table
Get the table gateway
getRows() : \Pop\Db\Record\Collection
Get the rows
rows() : \Pop\Db\Record\Collection
Get the rows (alias method)
setColumns(mixed $columns = null) : \Pop\Db\Record\AbstractRecord
Set all the table column values at once
| mixed | $columns |
setRows(array $rows = null, string $resultAs = \Pop\Db\Record\AbstractRecord::AS_RECORD) : \Pop\Db\Record\AbstractRecord
Set all the table rows at once
| array | $rows | |
| string | $resultAs |