public function delete($model, $id)
{
$id = new MongoID($id);
if ($model->debug) {
echo '<font style="color: blue">db.' . $model->table . '.remove(' . json_encode(array($model->id_field => $id)) . ',{justOne:true})</font><br/>';
}
$model->data = $this->_get($model, 'db')->remove(array($model->id_field => $id), array('justOne' => true));
$model->unload();
return $this;
}