| 1 | <?php |
||
| 12 | class TableQueryMapped extends TableQuery |
||
| 13 | { |
||
| 14 | protected static $mappers = []; |
||
| 15 | protected $mapper; |
||
| 16 | |||
| 17 | 36 | public function __construct(DBInterface $db, $table) |
|
| 25 | /** |
||
| 26 | * Perform the actual fetch |
||
| 27 | * @param array|null $fields optional array of columns to select (related columns can be used too) |
||
| 28 | * @return Collection the query result as a mapped Collection |
||
| 29 | */ |
||
| 30 | 32 | public function iterator(array $fields = null) |
|
| 34 | /** |
||
| 35 | * Create an empty entity for the queried table. |
||
| 36 | * |
||
| 37 | * @param array $data optional array of data to populate with |
||
| 38 | * @return object |
||
| 39 | */ |
||
| 40 | 1 | public function create(array $data = []) |
|
| 44 | } |