<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use App\Entity\ActiveServices\Project;
use App\Entity\Notification\NotificationArea;
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 Version20240612104034DataUpdate extends AbstractMigration implements ContainerAwareInterface
{
use ContainerAwareTrait;
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
/** @var EntityManagerInterface $entityManger */
$entityManager = $this->container->get('doctrine.orm.entity_manager');
$newNotificationAreaCommentUserTag = new NotificationArea(
NotificationArea::WORKFLOW_NOTIFICATION,
'Workflow notification',
'projects',
);
$entityManager->persist($newNotificationAreaCommentUserTag);
$entityManager->flush();
}
}