-
Notifications
You must be signed in to change notification settings - Fork 1
Symfony 6 set‐up
MatesMotionless edited this page Feb 28, 2024
·
1 revision
I just stumbled upon this and wanted to give a little update, if you are registering these functions you should register it in config/packages/doctrine.yaml instead of "Symfony/app/config/config.yml" which was mentioned in README.md and also register it in config/services.yaml as well.
It should look something like this:
//config/services.yaml
services:
(...)
App\Doctrine\TimeDiff:
tags:
- { name: doctrine.orm.query_parser }
also, I created the file in the namespace "App\Doctrine" meaning the directory path is src/Doctrine just because it fits my project structure more. So just change the "App\Doctrine\TimeDiff" to fit your needs.