Doctrine_Record::mapValue PHP Метод

mapValue() публичный Метод

Normally used by Doctrine for the mapping of aggregate values.
public mapValue ( string $name, mixed $value = null ) : void
$name string the name of the mapped value
$value mixed mixed value to be mapped
Результат void
    public function mapValue($name, $value = null)
    {
        $this->_values[$name] = $value;
    }

Usage Example

Пример #1
0
 /**
  * @param Doctrine_Record $record
  * @param mixed           $name
  * @param                 $value
  *
  * @return mixed
  * @throws Doctrine_Record_UnknownPropertyException
  */
 public function filterSet(Doctrine_Record $record, $name, $value)
 {
     $method = '_set' . ucfirst($name);
     if (method_exists($this, $method)) {
         $record->mapValue($name, $this->{$method}($record, $value));
         return $record->get($name);
     }
     throw new Doctrine_Record_UnknownPropertyException(sprintf('Unknown record property "%s" on "%s"', $name, get_class($record)));
 }
All Usage Examples Of Doctrine_Record::mapValue