Doctrine/ORM/Listener/RoleHierarchyListener.php
protected function getPrefix($object)
    {
        $id = 'user';

        if (method_exists($object, 'getOrganization')) {
            $org = $object->getOrganization();

            if ($org instanceof OrganizationInterface) {
                $id = (string) $org->getId();
            }
        }

        return $id.'__';
    }
protected function getPrefix($object)
    {
        $id = 'user';

        if (method_exists($object, 'getOrganization')) {
            $org = $object->getOrganization();

            if ($org instanceof OrganizationInterface) {
                $id = (string) $org->getId();
            }
        }

        return $id.'__';
    }
protected function getPrefix ( $ object ) { $ id = 'user' ; if ( method_exists ( $ object , 'getOrganization' ) ) { $ org = $ object -> getOrganization ( ) ; if ( $ org instanceof OrganizationInterface ) { $ id = ( string ) $ org -> getId ( ) ; } } return $ id . '__' ; }
Get the cache prefix key.

@param object $object

@return string
Get the cache prefix key .