Ejemplo n.º 1
0
 public function removeRelation($fk_from, $fk_to)
 {
     if ($this->db->get_where(static::$TABLE, array(static::$FK_FROM => $fk_from, static::$FK_TO => $fk_to))->num_rows() < 1) {
         throw new Exception('User does not own this item');
     }
     parent::removeRelation($fk_from, $fk_to);
 }
Ejemplo n.º 2
0
 public function __construct()
 {
     parent::__construct();
 }