Ejemplo n.º 1
0
 public function delete()
 {
     $query = "DELETE from " . self::DB_TABLE;
     $query .= " WHERE user_id = " . $this->userID;
     $query .= " AND project_id = " . $this->projectID;
     $db = Db::instance();
     $db->execute($query);
     ObjectCache::remove(get_class($this), $this->id);
 }