getProductCategoryContainer()->getRepositoryQuery(); } public function createEntity(string $entityFqcn) { return $this->getProductCategoryContainer()->getFactory()->create($this->getSectionCurrent()); } public function configureFields(string $pageName): iterable { return array_merge( [ FormField::addPanel('general'), IntegerField::new('id')->onlyOnIndex()->setSortable(true), TextField::new('title')->setSortable(true), NumberField::new('position')->hideOnForm()->setSortable(true), AssociationField::new('parent')->hideOnIndex(), DateTimeField::new('createdAt')->setFormat('short')->setSortable(true), CKEditorField::new('description')->hideOnIndex(), StatusField::new('status')->setSortable(true), ToggleField::new('saleStatus')->setSortable(true), ToggleField::new('isEligibleTicketRestaurant')->setSortable(true), ], $this->getSeoPanel(), $this->getConfPanel() ); } }