/** * Filter Doctrine_Record::get() calls and see if we can call the property on * the content type record * * @param Doctrine_Record $content The sfSympalContent instance * @param string $name The name of the property * @return mixed $value The value of the property * @throws Doctrine_Record_UnknownPropertyException If property could not be found */ public function filterGet(Doctrine_Record $content, $name) { try { if ($content->getRecord()) { return $content->getRecord()->get($name); } } catch (Exception $e) { } throw new Doctrine_Record_UnknownPropertyException(sprintf('Unknown record property / related component "%s" on "%s"', $name, get_class($content))); }