merge() public method

merges this record with an array of values or with another existing instance of this object
public merge ( $data, boolean $deep = true ) : void
$deep boolean whether or not to merge relations
return void
Example #1
0
 /**
  * Method to save entity. May be refined in child controller
  *
  * @param Doctrine_Record $entity
  * @param Zend_Form $form
  * @return void
  */
 protected function _saveEntity(Doctrine_Record $entity, Zend_Form $form)
 {
     $entity->merge($form->getValues());
     $entity->save();
 }