public function getLoadedEntity(NodeInterface $entity): NodeInterface
    {
        $class = ClassUtils::getClass($entity);
        if (isset(self::$deferred[$class][$entity->getId()]) && self::$deferred[$class][$entity->getId()] instanceof NodeInterface) {
            return self::$deferred[$class][$entity->getId()];
        }

        //fallback
        return $entity;
    }
public function getLoadedEntity(NodeInterface $entity): NodeInterface
    {
        $class = ClassUtils::getClass($entity);
        if (isset(self::$deferred[$class][$entity->getId()]) && self::$deferred[$class][$entity->getId()] instanceof NodeInterface) {
            return self::$deferred[$class][$entity->getId()];
        }

        //fallback
        return $entity;
    }
public function getLoadedEntity ( NodeInterface $ entity ) : NodeInterface { $ class = ClassUtils :: getClass ( $ entity ) ; if ( isset ( self :: $ deferred [ $ class ] [ $ entity -> getId ( ) ] ) && self :: $ deferred [ $ class ] [ $ entity -> getId ( ) ] instanceof NodeInterface ) { return self :: $ deferred [ $ class ] [ $ entity -> getId ( ) ] ; } //fallback return $ entity ; }
Return the loaded entity for given not initialized entity
Return the loaded entity for given not initialized entity