Rename offering to offer
This commit is contained in:
parent
a7b4bf09e4
commit
f54f663fb0
12 changed files with 90 additions and 59 deletions
|
@ -1,34 +0,0 @@
|
|||
<?php
|
||||
|
||||
namespace App\Controller\Admin;
|
||||
|
||||
use App\Entity\Offering;
|
||||
use App\Entity\User;
|
||||
|
||||
use EasyCorp\Bundle\EasyAdminBundle\Controller\AbstractCrudController;
|
||||
use EasyCorp\Bundle\EasyAdminBundle\Field\AssociationField;
|
||||
use EasyCorp\Bundle\EasyAdminBundle\Field\IdField;
|
||||
use EasyCorp\Bundle\EasyAdminBundle\Field\TextareaField;
|
||||
use EasyCorp\Bundle\EasyAdminBundle\Field\TextField;
|
||||
use EasyCorp\Bundle\EasyAdminBundle\Field\IntegerField;
|
||||
use EasyCorp\Bundle\EasyAdminBundle\Field\DateTimeField;
|
||||
|
||||
class OfferingCrudController extends AbstractCrudController
|
||||
{
|
||||
public static function getEntityFqcn(): string
|
||||
{
|
||||
return Offering::class;
|
||||
}
|
||||
|
||||
public function configureFields(string $pageName): iterable
|
||||
{
|
||||
return [
|
||||
yield AssociationField::new('byUser'),
|
||||
yield TextField::new('title'),
|
||||
yield DateTimeField::new('createdAt'),
|
||||
yield TextField::new('photoFilename'),
|
||||
yield IntegerField::new('zipcode'),
|
||||
yield TextareaField::new('description'),
|
||||
];
|
||||
}
|
||||
}
|
Reference in a new issue