src/Fixture/AbstractEntityReferenceFixture.php
protected function getObjectReferencesByIds(ObjectManager $objectManager, $className, array $ids)
    {
        $entities = [];

        foreach ($ids as $id) {
            /** @var EntityManager $objectManager */
            $entities[] = $objectManager->getReference($className, $id);
        }

        return $entities;
    }
protected function getObjectReferencesByIds(ObjectManager $objectManager, $className, array $ids)
    {
        $entities = [];

        foreach ($ids as $id) {
            /** @var EntityManager $objectManager */
            $entities[] = $objectManager->getReference($className, $id);
        }

        return $entities;
    }
protected function getObjectReferencesByIds ( ObjectManager $ objectManager , $ className , array $ ids ) { $ entities = [ ] ; foreach ( $ ids as $ id ) { /** @var EntityManager $objectManager */ $ entities [ ] = $ objectManager -> getReference ( $ className , $ id ) ; } return $ entities ; }
Returns array of object references by their ids. It's useful when ids are known and objects are used as
other entities' relation.

@param ObjectManager $objectManager
@param string $className
@param array $ids
@return array
Returns array of object references by their ids . It s useful when ids are known and objects are used as other entities relation .