protected function initializeData()
{
if ($this->data !== null) {
return;
}
$repository = $this->getRepository();
$data = $this->readEntityData();
$this->data = [];
foreach ($data as $row) {
if ($row === null) {
// auto increment placeholder
continue;
}
$entity = $repository->hydrateEntity($row);
$this->data[implode(',', (array) $entity->getPersistedId())] = $entity;
}
}