public function delete(Entity $entity) { parent::delete($entity); // someone please slap me for doing this manually :P // we needz CASCADE + FKs please $sql = 'DELETE FROM `*PREFIX*news_items` WHERE `feed_id` = ?'; $params = array($entity->getId()); $this->execute($sql, $params); }
public function __construct(Db $db) { parent::__construct($db, 'news_items', '\\OCA\\News\\Db\\Item'); }