Doctrine/ORM/Listener/RoleHierarchyListener.php
protected function isCacheableObject($object)
    {
        return $object instanceof UserInterface || $object instanceof RoleHierarchicalInterface || $object instanceof GroupInterface || $object instanceof OrganizationUserInterface;
    }
protected function isCacheableObject($object)
    {
        return $object instanceof UserInterface || $object instanceof RoleHierarchicalInterface || $object instanceof GroupInterface || $object instanceof OrganizationUserInterface;
    }
protected function isCacheableObject ( $ object ) { return $ object instanceof UserInterface || $ object instanceof RoleHierarchicalInterface || $ object instanceof GroupInterface || $ object instanceof OrganizationUserInterface ; }
Check if the object is cacheable or not.

@param object $object The object

@return bool
Check if the object is cacheable or not .