Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SearchBuilder Extension - Add one necessary file and add informations in the documentation on how to use it. #343

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

robiinho
Copy link

@robiinho robiinho commented May 14, 2024

In composer.json, should be good to add
"stof/doctrine-extensions-bundle": "^1.10",
to deal with DateTime Search

Allow the usage of SearchBuilder plugin, and deal with DateTimeInterface Format .

# Use:

            'criteria' => [
                new SearchBuilderCriteriaProvider($request),
                new SearchCriteriaProvider(),
            ],

Doctrine extension are needed: https://github.com/beberlei/DoctrineExtensions/tree/master

# To enable extensions
    orm:
        dql:
            datetime_functions:
                date: DoctrineExtensions\Query\Mysql\Date
                year: DoctrineExtensions\Query\Mysql\Year
                yearmonth: DoctrineExtensions\Query\Mysql\YearMonth
@robiinho robiinho changed the title Add one necessary file and add informations in the documentation on how to use it. SearchBuilder Extension - Add one necessary file and add informations in the documentation on how to use it. May 14, 2024
Copy link
Author

@robiinho robiinho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

namespace Omines\DataTablesBundle\Adapter\Doctrine\ORM;

Copy link

codecov bot commented May 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.56%. Comparing base (6c3b3dc) to head (f526241).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #343   +/-   ##
=======================================
  Coverage   94.56%   94.56%           
=======================================
  Files          37       37           
  Lines         975      975           
=======================================
  Hits          922      922           
  Misses         53       53           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

use Omines\DataTablesBundle\Adapter\Doctrine\ORM\SearchbuilderCriteriaProvider.php
Copy link
Author

@robiinho robiinho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use Omines\DataTablesBundle\Adapter\Doctrine\ORM\SearchBuilderCriteriaProvider;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant