mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-30 03:23:48 +00:00
Apply rector rules: add annotation for doctrine mapping
This commit is contained in:
@@ -16,33 +16,23 @@ use Doctrine\ORM\Mapping as ORM;
|
||||
|
||||
/**
|
||||
* AbstractTaskPlaceEvent.
|
||||
*
|
||||
* @ORM\MappedSuperclass
|
||||
*/
|
||||
#[ORM\MappedSuperclass]
|
||||
class AbstractTaskPlaceEvent
|
||||
{
|
||||
/**
|
||||
* @ORM\ManyToOne(
|
||||
* targetEntity="\Chill\MainBundle\Entity\User"
|
||||
* )
|
||||
*/
|
||||
#[ORM\ManyToOne(targetEntity: User::class)]
|
||||
private ?User $author = null;
|
||||
|
||||
/**
|
||||
* @ORM\Column(name="data", type="json")
|
||||
*/
|
||||
#[ORM\Column(name: 'data', type: \Doctrine\DBAL\Types\Types::JSON)]
|
||||
private array $data = [];
|
||||
|
||||
/**
|
||||
* @var datetime_immutable
|
||||
*
|
||||
* @ORM\Column(name="datetime", type="datetime_immutable")
|
||||
* @var \DateTimeImmutable
|
||||
*/
|
||||
#[ORM\Column(name: 'datetime', type: \Doctrine\DBAL\Types\Types::DATETIME_IMMUTABLE)]
|
||||
private $datetime;
|
||||
|
||||
/**
|
||||
* @ORM\Column(name="transition", type="string", length=255)
|
||||
*/
|
||||
#[ORM\Column(name: 'transition', type: \Doctrine\DBAL\Types\Types::STRING, length: 255)]
|
||||
private string $transition = '';
|
||||
|
||||
public function __construct()
|
||||
|
Reference in New Issue
Block a user