public function applyGlobalScopes($query)
    {
        foreach ($this->getGlobalScopes() as $scope) {
            $scope->apply($query, $this);
        }

        return $query;
    }
public function applyGlobalScopes($query)
    {
        foreach ($this->getGlobalScopes() as $scope) {
            $scope->apply($query, $this);
        }

        return $query;
    }
public function applyGlobalScopes ( $ query ) { foreach ( $ this -> getGlobalScopes ( ) as $ scope ) { $ scope -> apply ( $ query , $ this ) ; } return $ query ; }
Apply all of the global scopes to an Analogue Query builder.

@param Query $query

@return \Analogue\ORM\System\Query
Apply all of the global scopes to an Analogue Query builder .