Пример #1
0
 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);
 }
Пример #2
0
 public function __construct(Db $db)
 {
     parent::__construct($db, 'news_items', '\\OCA\\News\\Db\\Item');
 }