Is there an analogue of s laravel'GlobalScope have a doctrine or symfony?

In my app there is a division into workspace
Each user is available only the one workspace to which it is bound. Workspace itself is stored in the user.
And when I need to, for example, a list of projects, and in General, when speaking to each entity, I need to choose initially on the workspace.
$this->repo->createQueryBuilder('m')
->select('*')
 ->where('t.workspace_id = :id')
 ->setParameter(':id', $user->id)
 ->getQuery();

I read here sounded a question and did not find the answer for yourself. From Laravel is cool stuff - globalScope, which I can use to automate the sample. How about symfony?
April 4th 20 at 00:27
1 answer
April 4th 20 at 00:29
I'm on Laravel not write, but from the documentation it is some kind of analogue of an additional filter which can be mounted on request. If I'm right, the closest analogue filters.

Find more questions by tags SymfonyDoctrine ORM