private function _checkAndReturnHasOne($method, $value)
    {
        $cls = get_called_class();
        if (array_key_exists($cls, self::$_has_one)
            && array_key_exists($method, self::$_has_one[$cls])
        ) {
            return $this->_resolveHasOne($method, $value);
        }
    }
private function _checkAndReturnHasOne($method, $value)
    {
        $cls = get_called_class();
        if (array_key_exists($cls, self::$_has_one)
            && array_key_exists($method, self::$_has_one[$cls])
        ) {
            return $this->_resolveHasOne($method, $value);
        }
    }
private function _checkAndReturnHasOne ( $ method , $ value ) { $ cls = get_called_class ( ) ; if ( array_key_exists ( $ cls , self :: $ _has_one ) && array_key_exists ( $ method , self :: $ _has_one [ $ cls ] ) ) { return $ this -> _resolveHasOne ( $ method , $ value ) ; } }
Check and return the value of a has one association

@param string $method searched
@param mixed  $value  the current id

@return association
Check and return the value of a has one association