odiseoteam / SyliusReportPlugin

Report Plugin for Sylius. This plugin add a report interface to the Sylius administration. Some reports comes with this bundle but you can create your custom reports.
MIT License
31 stars 10 forks source link

Exception during template rendering #11

Closed afasciaux closed 4 years ago

afasciaux commented 4 years ago

Hi,

After my report creation, i got this excepetion :

Twig\Error\RuntimeError: An exception has been thrown during the rendering of a template ("[Syntax Error] line 0, col 7: Error: Expected known function, got 'DATE'").

at vendor/odiseoteam/sylius-report-plugin/src/Resources/views/show.html.twig:64

Any information to debug that ?

Thanks a lot !

songecko commented 4 years ago

Hi @alexweggs, did you add the DoctrineExtensions settings like the README explains?

doctrine:
    orm:
        # ...
        dql:
            datetime_functions:
                date: DoctrineExtensions\Query\Mysql\Date
                month: DoctrineExtensions\Query\Mysql\Month
                year: DoctrineExtensions\Query\Mysql\Year
            numeric_functions:
                round: DoctrineExtensions\Query\Mysql\Round