Exemple #1
0
 /**
  * Specialized setter for values. Will try to set the value first
  * and if an error occurs, convert the field name to snake case and try
  * again.
  *
  * @param String $field Field name
  * @param mixed  $value Field value
  * @return mixed Whatever SimpleORMap::setValue() might return
  * @throws InvalidArgumentException when the field is invalid
  * @todo This should be removed after a while (today is 2015-11-19)
  */
 public function setValue($field, $value)
 {
     try {
         return parent::setValue($field, $value);
     } catch (Exception $e) {
         $field = $this->convertLegacyFields($field);
         return parent::setValue($field, $value);
     }
 }