I'm trying to retrieve a list of objects from database where Entity.user = "current user"
.
It's a ManyToOne relation between an Entity entity and a User Entity
I tried to use the dql-filter option in the bundle config but couldn't find a parameter variable like we can find in Controller $this->getUser()
or in Twig {{app.user}}
I tried to use custom controller but I am confused as the documentation is not very detailed.