setCustomOption('appendHtml','€') ->hideOnIndex(), NumberField::new('deliveryPrice') ->setCustomOption('appendHtml','€') ->hideOnIndex(), BooleanField::new('isPublic'), BooleanField::new('isDepository'), StatusField::new('status') ->hideOnIndex(), FormField::addPanel('address'), AddressField::new('address') ->setRequired(true) ], $this->getSeoPanel(), $this->getConfPanel(), ); } public function createEntity(string $entityFqcn) { $factory = new PointSaleFactory(); $currentMerchant = $this->get('merchant_resolver')->getCurrent(); return $factory->create($currentMerchant); } }