protected function createBaseBuilder(array $options = [])
    {
        $query = $this->createQueryBuilder();

        $this->applyResourceOptions($query, $options);

        if (empty($options['sort'])) {
            $this->defaultSort($query, $options);
        }

        return $query;
    }
protected function createBaseBuilder(array $options = [])
    {
        $query = $this->createQueryBuilder();

        $this->applyResourceOptions($query, $options);

        if (empty($options['sort'])) {
            $this->defaultSort($query, $options);
        }

        return $query;
    }
protected function createBaseBuilder ( array $ options = [ ] ) { $ query = $ this -> createQueryBuilder ( ) ; $ this -> applyResourceOptions ( $ query , $ options ) ; if ( empty ( $ options [ 'sort' ] ) ) { $ this -> defaultSort ( $ query , $ options ) ; } return $ query ; }
Creates a new query builder with Optimus options set
@param  array $options
@return Builder
Creates a new query builder with Optimus options set