public function remove($id = null) { if (is_null($id)) { $id = $this->id; } $sql = "DELETE FROM " . $this->getTable() . " WHERE " . $this->getKey() . "=?"; return $this->conn->execute($sql, array($id)); }