source/Spiral/ORM/EntityMap.php
public function get(string $class, string $identity)
    {
        if (!$this->has($class, $identity)) {
            return null;
        }

        return $this->entities["{$class}:{$identity}"];
    }
public function get(string $class, string $identity)
    {
        if (!$this->has($class, $identity)) {
            return null;
        }

        return $this->entities["{$class}:{$identity}"];
    }
public function get ( string $ class , string $ identity ) { if ( ! $ this -> has ( $ class , $ identity ) ) { return null ; } return $ this -> entities [ "{$class}:{$identity}" ] ; }
Fetch entity from cache.

@param string $class
@param string $identity

@return null|mixed
Fetch entity from cache .