findEntity($sql, [$id]); } public function findAll($userId, $limit=null, $offset=null) { $sql = 'SELECT * FROM `*PREFIX*deck_boards` WHERE `owner` = ? ORDER BY `title`'; return $this->findEntities($sql, [$userId], $limit, $offset); } public function delete(Entity $entity) { // FIXME: delete linked elements, because owncloud doesn't support foreign keys for apps return parent::delete($entity); } }