Exemplo n.º 1
0
 /**
  * Update
  *
  * @param   CommentsComment  $comment       {@link CommentsComment} object
  * @param   string  $field_name     Name of the field
  * @param   mixed   $field_value    Value to write
  *
  * @return  bool
  **/
 public function updateByField(CommentsComment $comment, $field_name, $field_value)
 {
     $comment->unsetNew();
     $comment->setVar($field_name, $field_value);
     return $this->insert($comment);
 }