Bravo3\Orm\Services\Cache\EphemeralEntityCache::retrieve PHP Method

retrieve() public method

If an entity does not exist, a NotFoundException will be thrown.
public retrieve ( string $class_name, string $id ) : object
$class_name string
$id string
return object
    public function retrieve($class_name, $id)
    {
        if (!$this->exists($class_name, $id)) {
            throw new NotFoundException('Entity ' . $class_name . ':' . $id . ' does not exist in cache');
        }
        return $this->storage[$this->getEntityKey($class_name, $id)];
    }