forked from Somnia/SomniaRooms
- Implementación modelo tarifarios y tarifas. - Implementación inicial servicio precios.
32 lines
828 B
PHP
32 lines
828 B
PHP
<?php
|
|
|
|
namespace App\Controller\Admin;
|
|
|
|
use EasyCorp\Bundle\EasyAdminBundle\Controller\AbstractCrudController;
|
|
use EasyCorp\Bundle\EasyAdminBundle\Field\{AssociationField, TextField, DateField};
|
|
|
|
use App\Entity\FareTable;
|
|
use App\Entity\RoomCategory;
|
|
use App\Controller\Admin\RoomCategoryCrudController;
|
|
|
|
class FareTableCrudController extends AbstractCrudController
|
|
{
|
|
public static function getEntityFqcn(): string
|
|
{
|
|
return FareTable::class;
|
|
}
|
|
|
|
public function configureFields(string $pageName): iterable
|
|
{
|
|
//$catRepo = $this->entityManager->getRepository(SomeEntity::class);
|
|
|
|
yield TextField::new('comment')->setLabel('Name');
|
|
|
|
yield AssociationField::new('roomCategory');
|
|
|
|
yield DateField::new('startDate');
|
|
yield DateField::new('endDate');
|
|
|
|
}
|
|
}
|