Apply rector rules: add annotation for doctrine mapping

This commit is contained in:
2024-04-05 00:01:30 +02:00
parent 579bd829f8
commit 72016e1a21
124 changed files with 1724 additions and 3770 deletions

View File

@@ -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()