This repository has been archived on 2024-10-16. You can view files and clone it, but cannot push or open issues or pull requests.
pflaenz.li-Symfony/src/Controller/Admin/WishCrudController.php
2021-05-04 11:52:20 +02:00

24 lines
596 B
PHP

<?php
namespace App\Controller\Admin;
use App\Entity\Wish;
use EasyCorp\Bundle\EasyAdminBundle\Controller\AbstractCrudController;
use EasyCorp\Bundle\EasyAdminBundle\Field\AssociationField;
use EasyCorp\Bundle\EasyAdminBundle\Field\TextField;
class WishCrudController extends AbstractCrudController
{
public static function getEntityFqcn(): string
{
return Wish::class;
}
public function configureFields(string $pageName): iterable
{
return [
yield AssociationField::new('byUser'),
yield TextField::new('title'),
];
}
}