← Back
Editing: AddressReminder.php
<?php namespace App\Entity; use App\Repository\AddressReminderRepository; use Doctrine\ORM\Mapping as ORM; use Symfony\Component\Serializer\Annotation\Groups; #[ORM\Entity(repositoryClass: AddressReminderRepository::class)] class AddressReminder { #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column(type: 'integer')] private ?int $id = null; #[ORM\ManyToOne(targetEntity: Adresse::class, inversedBy: 'addressReminders')] #[ORM\JoinColumn(nullable: false, onDelete: 'CASCADE')] #[Groups(['show_reminder'])] private ?Adresse $address; #[ORM\Column(type: 'boolean')] private bool $done = false; #[ORM\Column(type: 'datetime')] #[Groups(['show_reminder'])] private \DateTimeInterface $createdAt; public function __construct() { $this->createdAt = new \DateTime(); } public function getId(): ?int { return $this->id; } public function getAddress(): ?Adresse { return $this->address; } public function setAddress(?Adresse $address): self { $this->address = $address; return $this; } public function getDone(): ?bool { return $this->done; } public function setDone(bool $done): self { $this->done = $done; return $this; } public function getCreatedAt(): ?\DateTimeInterface { return $this->createdAt; } public function setCreatedAt(\DateTimeInterface $createdAt): self { $this->createdAt = $createdAt; return $this; } public function isDone(): ?bool { return $this->done; } }
Save File
Cancel