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); }
public function __construct() { parent::__construct(); }