Example #1
0
 /**
  * Update the contents of a record in source
  *
  * @param Query $query
  * @param array $options
  * @return boolean
  */
 public function update($query, array $options = array())
 {
     $model = $query->model();
     $source = $model::meta('source');
     $data = $query->record()->data();
     $key = $this->locate($source, array('id' => $data['id']));
     $this->__data[$source][$key] = $query->record();
     return true;
 }