Doctrine/ORM/Filter/Listener/PrivateSharingSubscriber.php
public function getFilter(GetFilterEvent $event): void
    {
        $filter = $this->buildSharingFilter($event);
        $filter = $this->buildOwnerFilter($event, $filter);

        $event->setFilterConstraint($filter);
    }
public function getFilter(GetFilterEvent $event): void
    {
        $filter = $this->buildSharingFilter($event);
        $filter = $this->buildOwnerFilter($event, $filter);

        $event->setFilterConstraint($filter);
    }
public function getFilter ( GetFilterEvent $ event ) : void { $ filter = $ this -> buildSharingFilter ( $ event ) ; $ filter = $ this -> buildOwnerFilter ( $ event , $ filter ) ; $ event -> setFilterConstraint ( $ filter ) ; }
Get the sharing filter.

@param GetFilterEvent $event The event
Get the sharing filter .