protected function isNonLoadedProxy(string $key): bool
    {
        $relation = $this->getEntityAttribute($key);

        return $relation instanceof ProxyInterface && !$relation->isProxyInitialized();
    }
protected function isNonLoadedProxy(string $key): bool
    {
        $relation = $this->getEntityAttribute($key);

        return $relation instanceof ProxyInterface && !$relation->isProxyInitialized();
    }
protected function isNonLoadedProxy ( string $ key ) : bool { $ relation = $ this -> getEntityAttribute ( $ key ) ; return $ relation instanceof ProxyInterface && ! $ relation -> isProxyInitialized ( ) ; }
Return true if attribute is a non-loaded proxy.

@param string $key

@return bool
Return true if attribute is a non - loaded proxy .