예제 #1
0
파일: feedmapper.php 프로젝트: hroo772/news
 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
파일: itemmapper.php 프로젝트: hroo772/news
 public function __construct(Db $db)
 {
     parent::__construct($db, 'news_items', '\\OCA\\News\\Db\\Item');
 }