public function getAttributeValue($document, $attribute)
    {
        if ($document instanceof Proxy && !in_array($attribute, $this->getIdentifierAttributeNames()) && !$document->__isInitialized()) {
            $document->__load();
        }

        return $this->getPropertyMetadata($attribute)->getValue($document);
    }
public function getAttributeValue($document, $attribute)
    {
        if ($document instanceof Proxy && !in_array($attribute, $this->getIdentifierAttributeNames()) && !$document->__isInitialized()) {
            $document->__load();
        }

        return $this->getPropertyMetadata($attribute)->getValue($document);
    }
public function getAttributeValue ( $ document , $ attribute ) { if ( $ document instanceof Proxy && ! in_array ( $ attribute , $ this -> getIdentifierAttributeNames ( ) ) && ! $ document -> __isInitialized ( ) ) { $ document -> __load ( ) ; } return $ this -> getPropertyMetadata ( $ attribute ) -> getValue ( $ document ) ; }
Gets the specified attribute's value off the given document.

@param object $document
@param string $attribute

@return mixed
Gets the specified attribute s value off the given document .