Doctrine/ORM/Filter/Listener/PrivateSharingSubscriber.php
private function buildOwnerFilter(GetFilterEvent $event, $filter)
    {
        $class = $event->getTargetEntity()->getName();
        $interfaces = class_implements($class);

        if (\in_array(OwnerableInterface::class, $interfaces, true)) {
            $filter = $this->buildRequiredOwnerFilter($event, $filter);
        } elseif (\in_array(OwnerableOptionalInterface::class, $interfaces, true)) {
            $filter = $this->buildOptionalOwnerFilter($event, $filter);
        }

        return $filter;
    }
private function buildOwnerFilter(GetFilterEvent $event, $filter)
    {
        $class = $event->getTargetEntity()->getName();
        $interfaces = class_implements($class);

        if (\in_array(OwnerableInterface::class, $interfaces, true)) {
            $filter = $this->buildRequiredOwnerFilter($event, $filter);
        } elseif (\in_array(OwnerableOptionalInterface::class, $interfaces, true)) {
            $filter = $this->buildOptionalOwnerFilter($event, $filter);
        }

        return $filter;
    }
private function buildOwnerFilter ( GetFilterEvent $ event , $ filter ) { $ class = $ event -> getTargetEntity ( ) -> getName ( ) ; $ interfaces = class_implements ( $ class ) ; if ( \ in_array ( OwnerableInterface :: class , $ interfaces , true ) ) { $ filter = $ this -> buildRequiredOwnerFilter ( $ event , $ filter ) ; } elseif ( \ in_array ( OwnerableOptionalInterface :: class , $ interfaces , true ) ) { $ filter = $ this -> buildOptionalOwnerFilter ( $ event , $ filter ) ; } return $ filter ; }
Build the query filter with owner.

@param GetFilterEvent $event  The event
@param string         $filter The previous filter

@return string
Build the query filter with owner .