mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-27 17:15:02 +00:00
Apply rector rules: add annotation for doctrine mapping
This commit is contained in:
@@ -11,20 +11,17 @@ declare(strict_types=1);
|
||||
|
||||
namespace Chill\MainBundle\Entity\User;
|
||||
|
||||
use App\Repository\UserJobHistoryRepository;
|
||||
use Chill\MainBundle\Entity\User;
|
||||
use Chill\MainBundle\Entity\UserJob;
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
|
||||
|
||||
#[ORM\Entity(repositoryClass: UserJobHistoryRepository::class)]
|
||||
#[ORM\Entity(repositoryClass: \Chill\MainBundle\Repository\User\UserJobHistoryRepository::class)]
|
||||
#[ORM\Table(name: 'chill_main_user_job_history')]
|
||||
class UserJobHistory
|
||||
{
|
||||
#[ORM\Column(type: \Doctrine\DBAL\Types\Types::DATETIME_IMMUTABLE, nullable: true)]
|
||||
private ?\DateTimeImmutable $endDate = null;
|
||||
|
||||
|
||||
#[ORM\Id]
|
||||
#[ORM\GeneratedValue]
|
||||
#[ORM\Column(type: \Doctrine\DBAL\Types\Types::INTEGER)]
|
||||
|
@@ -11,12 +11,11 @@ declare(strict_types=1);
|
||||
|
||||
namespace Chill\MainBundle\Entity\User;
|
||||
|
||||
use App\Repository\UserScopeHistoryRepository;
|
||||
use Chill\MainBundle\Entity\Scope;
|
||||
use Chill\MainBundle\Entity\User;
|
||||
use Chill\MainBundle\Repository\User\UserScopeHistoryRepository;
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
|
||||
|
||||
#[ORM\Entity(repositoryClass: UserScopeHistoryRepository::class)]
|
||||
#[ORM\Table(name: 'chill_main_user_scope_history')]
|
||||
class UserScopeHistory
|
||||
@@ -24,7 +23,6 @@ class UserScopeHistory
|
||||
#[ORM\Column(type: \Doctrine\DBAL\Types\Types::DATETIME_IMMUTABLE, nullable: true)]
|
||||
private ?\DateTimeImmutable $endDate = null;
|
||||
|
||||
|
||||
#[ORM\Id]
|
||||
#[ORM\GeneratedValue]
|
||||
#[ORM\Column(type: \Doctrine\DBAL\Types\Types::INTEGER)]
|
||||
|
Reference in New Issue
Block a user