src/Orm/SessionTrait.php
public static function sessionReload(string $name = null)
    {
        if (!$name) {
            $name = get_called_class();
        }

        $data = self::session()->get($name);

        if (!$data) {
            return false;
        }

        $class = get_called_class();

        if (method_exists($class, 'sessionWakeup')) {
            $data = $class::sessionWakeup($data);
        }

        return $data;
    }
public static function sessionReload(string $name = null)
    {
        if (!$name) {
            $name = get_called_class();
        }

        $data = self::session()->get($name);

        if (!$data) {
            return false;
        }

        $class = get_called_class();

        if (method_exists($class, 'sessionWakeup')) {
            $data = $class::sessionWakeup($data);
        }

        return $data;
    }
@param string $name

@return null|object