<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use App\Entity\Workflow\Action;
use App\Repository\Workflow\ActionRepository;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
use Symfony\Component\DependencyInjection\ContainerAwareInterface;
use Symfony\Component\DependencyInjection\ContainerAwareTrait;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version2024091908483 extends AbstractMigration implements ContainerAwareInterface
{
use ContainerAwareTrait;
public function getDescription(): string
{
return '';
}
// ACTION_SYSTEM_NOTIFICATION
public function up(Schema $schema): void
{
$entityManager = $this->container->get('doctrine.orm.entity_manager');
/** @var ActionRepository $actionWorkflowRepository */
$actionWorkflowRepository = $entityManager->getRepository(Action::class);
$actionSystemNotification = $actionWorkflowRepository->findOneBy(['name' => 'ACTION_SYSTEM_NOTIFICATION']);
$entityManager->remove($actionSystemNotification);
$entityManager->flush();
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
}
}