/** * Create empty values for non-persisted values * * @param LifeCycleEventArgs $args * * @return void */ public function postLoad(LifeCycleEventArgs $args) { $entity = $args->getEntity(); if ($entity instanceof ValueSetInterface && $entity->getValues() !== null) { $this->eavManager->replaceEmptyValues($entity); } }