diff --git a/src/Bundle/ChillCalendarBundle/Export/Filter/BetweenDatesFilter.php b/src/Bundle/ChillCalendarBundle/Export/Filter/BetweenDatesFilter.php index 23887ca2a..59019ac03 100644 --- a/src/Bundle/ChillCalendarBundle/Export/Filter/BetweenDatesFilter.php +++ b/src/Bundle/ChillCalendarBundle/Export/Filter/BetweenDatesFilter.php @@ -16,7 +16,6 @@ use Chill\MainBundle\Export\FilterInterface; use Chill\MainBundle\Form\Type\PickRollingDateType; use Chill\MainBundle\Service\RollingDate\RollingDate; use Chill\MainBundle\Service\RollingDate\RollingDateConverterInterface; -use Doctrine\ORM\Query\Expr\Andx; use Doctrine\ORM\QueryBuilder; use Symfony\Component\Form\FormBuilderInterface; diff --git a/src/Bundle/ChillCalendarBundle/migrations/Version20221125144205.php b/src/Bundle/ChillCalendarBundle/migrations/Version20221125144205.php index c619dd228..624fdda00 100644 --- a/src/Bundle/ChillCalendarBundle/migrations/Version20221125144205.php +++ b/src/Bundle/ChillCalendarBundle/migrations/Version20221125144205.php @@ -2,6 +2,13 @@ declare(strict_types=1); +/* + * Chill is a software for social workers + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Chill\Migrations\Calendar; use Doctrine\DBAL\Schema\Schema; @@ -9,6 +16,11 @@ use Doctrine\Migrations\AbstractMigration; final class Version20221125144205 extends AbstractMigration { + public function down(Schema $schema): void + { + $this->throwIrreversibleMigrationException(); + } + public function getDescription(): string { return 'Calendar: remove association between scope and calendar'; @@ -23,11 +35,7 @@ final class Version20221125144205 extends AbstractMigration 'CHILL_CALENDAR_CALENDAR_DELETE', 'CHILL_CALENDAR_CALENDAR_EDIT', 'CHILL_CALENDAR_CALENDAR_SEE' - )); - } - - public function down(Schema $schema): void - { - $this->throwIrreversibleMigrationException(); + ) + ); } } diff --git a/src/Bundle/ChillMainBundle/Form/Type/PickRollingDateType.php b/src/Bundle/ChillMainBundle/Form/Type/PickRollingDateType.php index 5b5bff6b3..a4492526f 100644 --- a/src/Bundle/ChillMainBundle/Form/Type/PickRollingDateType.php +++ b/src/Bundle/ChillMainBundle/Form/Type/PickRollingDateType.php @@ -44,6 +44,11 @@ class PickRollingDateType extends AbstractType $builder->setDataMapper(new RollingDateDataMapper()); } + public function buildView(FormView $view, FormInterface $form, array $options) + { + $view->vars['uniqid'] = uniqid('rollingdate-'); + } + public function configureOptions(OptionsResolver $resolver) { $resolver->setDefaults([ @@ -65,9 +70,4 @@ class PickRollingDateType extends AbstractType ->addViolation(); } } - - public function buildView(FormView $view, FormInterface $form, array $options) - { - $view->vars['uniqid'] = uniqid('rollingdate-'); - } }