public function updateObject($values = null)
 {
     $object = parent::updateObject($values);
     if (array_key_exists('binary_content', $this->values)) {
         $object->setBinaryContent($this->values['binary_content']);
     }
     return $object;
 }
 /**
  * save physical file when adding new asset
  * @param  array   $values
  * @return sfAsset
  */
 public function updateObject($values = null)
 {
     $object = parent::updateObject($values);
     if ($object->isNew()) {
         $file = $this->getValue('file');
         $object->setAuthor($this->getOption('author'));
         $object->setFilename($file->getOriginalName());
         if ($this->getValue('description') == '') {
             $object->setDescription($file->getOriginalName());
         }
         $object->create($file->getTempName());
     }
     return $object;
 }