public function configureOptions(OptionsResolver $resolver) { $resolver->setDefaults(['empty_data' => function () { $this->factory->create(); }, 'data_class' => $this->factory->getEntityNamespace()]); }