Doctrine/ORM/Listener/RoleHierarchyListener.php
protected function getAllCollections(UnitOfWork $uow)
    {
        return array_merge(
            $uow->getScheduledEntityInsertions(),
            $uow->getScheduledEntityUpdates(),
            $uow->getScheduledEntityDeletions(),
            $uow->getScheduledCollectionUpdates(),
            $uow->getScheduledCollectionDeletions()
        );
    }
protected function getAllCollections(UnitOfWork $uow)
    {
        return array_merge(
            $uow->getScheduledEntityInsertions(),
            $uow->getScheduledEntityUpdates(),
            $uow->getScheduledEntityDeletions(),
            $uow->getScheduledCollectionUpdates(),
            $uow->getScheduledCollectionDeletions()
        );
    }
protected function getAllCollections ( UnitOfWork $ uow ) { return array_merge ( $ uow -> getScheduledEntityInsertions ( ) , $ uow -> getScheduledEntityUpdates ( ) , $ uow -> getScheduledEntityDeletions ( ) , $ uow -> getScheduledCollectionUpdates ( ) , $ uow -> getScheduledCollectionDeletions ( ) ) ; }
Get the merged collection of all scheduled collections.

@param UnitOfWork $uow The unit of work

@return array
Get the merged collection of all scheduled collections .