private function _checkAndReturnBelongs($attr, $values)
    {
        $cls = get_called_class();
        if (array_key_exists($cls, self::$_belongs_to)
            && array_key_exists($attr, self::$_belongs_to[$cls])
        ) {
            return $this->_resolveBelongsTo($attr, $values);
        }
    }
private function _checkAndReturnBelongs($attr, $values)
    {
        $cls = get_called_class();
        if (array_key_exists($cls, self::$_belongs_to)
            && array_key_exists($attr, self::$_belongs_to[$cls])
        ) {
            return $this->_resolveBelongsTo($attr, $values);
        }
    }
private function _checkAndReturnBelongs ( $ attr , $ values ) { $ cls = get_called_class ( ) ; if ( array_key_exists ( $ cls , self :: $ _belongs_to ) && array_key_exists ( $ attr , self :: $ _belongs_to [ $ cls ] ) ) { return $ this -> _resolveBelongsTo ( $ attr , $ values ) ; } }
Check if is there a belongs to association and return it

@param string $attr   attribute
@param mixed  $values values to use

@return mixed association
Check if is there a belongs to association and return it