| 1 | <?php |
||
| 28 | abstract class DeckMapper extends Mapper { |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @param $id |
||
| 32 | * @return \OCP\AppFramework\Db\Entity if not found |
||
| 33 | */ |
||
| 34 | public function find($id) { |
||
| 35 | $sql = 'SELECT * FROM `' . $this->tableName . '` ' . 'WHERE `id` = ?'; |
||
| 36 | return $this->findEntity($sql, [$id]); |
||
| 37 | } |
||
| 38 | |||
| 39 | protected function execute($sql, array $params = [], $limit = null, $offset = null) { |
||
| 42 | |||
| 43 | } |