public static function getScheduledEntityUpdatesByClassname(EntityManager $em, $classnames)
    {
        $entities = array();
        $classnames = (array) $classnames;

        foreach ($em->getUnitOfWork()->getScheduledEntityUpdates() as $entity) {
            if (true === in_array(ClassUtils::getRealClass($entity), $classnames)) {
                $entities[] = $entity;
            }
        }

        return $entities;
    }
public static function getScheduledEntityUpdatesByClassname(EntityManager $em, $classnames)
    {
        $entities = array();
        $classnames = (array) $classnames;

        foreach ($em->getUnitOfWork()->getScheduledEntityUpdates() as $entity) {
            if (true === in_array(ClassUtils::getRealClass($entity), $classnames)) {
                $entities[] = $entity;
            }
        }

        return $entities;
    }
public static function getScheduledEntityUpdatesByClassname ( EntityManager $ em , $ classnames ) { $ entities = array ( ) ; $ classnames = ( array ) $ classnames ; foreach ( $ em -> getUnitOfWork ( ) -> getScheduledEntityUpdates ( ) as $ entity ) { if ( true === in_array ( ClassUtils :: getRealClass ( $ entity ) , $ classnames ) ) { $ entities [ ] = $ entity ; } } return $ entities ; }
Returns an array of scheduled entities by classname for updates.

@param \Doctrine\ORM\EntityManager $em
@param string|array Classnames

@return array
Returns an array of scheduled entities by classname for updates .