Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 8 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 1 |
| MaxfieldsCrudController | |
0.00% |
0 / 8 |
|
0.00% |
0 / 2 |
6 | |
0.00% |
0 / 1 |
| getEntityFqcn | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| configureFields | |
0.00% |
0 / 7 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace App\Controller\Admin; |
| 6 | |
| 7 | use Override; |
| 8 | use App\Entity\Maxfield; |
| 9 | use EasyCorp\Bundle\EasyAdminBundle\Controller\AbstractCrudController; |
| 10 | use EasyCorp\Bundle\EasyAdminBundle\Field\AssociationField; |
| 11 | use EasyCorp\Bundle\EasyAdminBundle\Field\Field; |
| 12 | use EasyCorp\Bundle\EasyAdminBundle\Field\IdField; |
| 13 | |
| 14 | /** |
| 15 | * @extends AbstractCrudController<Maxfield> |
| 16 | */ |
| 17 | class MaxfieldsCrudController extends AbstractCrudController |
| 18 | { |
| 19 | public static function getEntityFqcn(): string |
| 20 | { |
| 21 | return Maxfield::class; |
| 22 | } |
| 23 | |
| 24 | #[Override] |
| 25 | public function configureFields(string $pageName): iterable |
| 26 | { |
| 27 | return [ |
| 28 | IdField::new('id') |
| 29 | ->onlyOnIndex(), |
| 30 | Field::new('name'), |
| 31 | Field::new('path'), |
| 32 | // Field::new('jsondata'), |
| 33 | AssociationField::new('owner'), |
| 34 | ]; |
| 35 | } |
| 36 | } |