DynamicActiveRecord.php
public function getAttribute($name)
    {
        try {
            return parent::__get($name);
        } catch (UnknownPropertyException $ignore) {
        }

        $path = explode('.', $name);
        $ref = &$this->_dynamicAttributes;

        foreach ($path as $key) {
            if (!isset($ref[$key])) {
                return null;
            }
            $ref = &$ref[$key];
        }

        return $ref;
    }
public function getAttribute($name)
    {
        try {
            return parent::__get($name);
        } catch (UnknownPropertyException $ignore) {
        }

        $path = explode('.', $name);
        $ref = &$this->_dynamicAttributes;

        foreach ($path as $key) {
            if (!isset($ref[$key])) {
                return null;
            }
            $ref = &$ref[$key];
        }

        return $ref;
    }
public function getAttribute ( $ name ) { try { return parent :: __get ( $ name ) ; } catch ( UnknownPropertyException $ ignore ) { } $ path = explode ( '.' , $ name ) ; $ ref = & $ this -> _dynamicAttributes ; foreach ( $ path as $ key ) { if ( ! isset ( $ ref [ $ key ] ) ) { return null ; } $ ref = & $ ref [ $ key ] ; } return $ ref ; }
Returns a model attribute value.

@param string $name attribute name, use dotted notation for structured attributes.

@return mixed|null the attribute value or null if the attribute does not exist
Returns a model attribute value .