private static function modelInstance(array $ctor = [])
    {
        static $cached;
        if (!isset($cached)) {
            $class = new ReflectionClass(get_called_class());
            $cached = $class->newInstanceArgs($ctor);
        }
        return $cached;
    }
private static function modelInstance(array $ctor = [])
    {
        static $cached;
        if (!isset($cached)) {
            $class = new ReflectionClass(get_called_class());
            $cached = $class->newInstanceArgs($ctor);
        }
        return $cached;
    }
private static function modelInstance ( array $ ctor = [ ] ) { static $ cached ; if ( ! isset ( $ cached ) ) { $ class = new ReflectionClass ( get_called_class ( ) ) ; $ cached = $ class -> newInstanceArgs ( $ ctor ) ; } return $ cached ; }
Internal helper to retrieve a cached, anonymous instance of the actual
model to work on. Needed to ensure dependencies are properly injected
etc.

@param array $ctor Optional constructor arguments.
@return object An instance of the Model being queried.
Internal helper to retrieve a cached anonymous instance of the actual model to work on . Needed to ensure dependencies are properly injected etc .