/**
  * {@inheritdoc}
  */
 public function read()
 {
     $entities = [];
     while ($entity = parent::read()) {
         $entities[] = $entity;
     }
     return empty($entities) ? null : $entities;
 }
 /**
  * @return array|mixed|null
  */
 public function read()
 {
     $entities = [];
     while ($entity = parent::read()) {
         $entities[] = $entity;
         $this->stepExecution->incrementReadCount();
     }
     return empty($entities) ? null : $entities;
 }
 /**
  * {@inheritdoc}
  */
 public function getConfigurationFields()
 {
     return array_merge(parent::getConfigurationFields(), array('channel' => array('type' => 'choice', 'options' => array('choices' => $this->channelManager->getChannelChoices(), 'required' => true, 'select2' => true, 'label' => 'pim_base_connector.export.channel.label', 'help' => 'pim_base_connector.export.channel.help'))));
 }
 /**
  * {@inheritdoc}
  */
 public function getConfigurationFields()
 {
     return array_merge(parent::getConfigurationFields(), $this->attributeCodeMappingMerger->getConfigurationField());
 }
 /**
  * @param EntityManager      $em         The entity manager
  * @param string             $className  The entity class name used
  * @param CategoryRepository $repository The entity repository
  */
 public function __construct(EntityManager $em, $className, CategoryRepository $repository)
 {
     parent::__construct($em, $className);
     $this->repository = $repository;
 }