/**
* @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)));
}