<?php
namespace App\Entity;
use App\Repository\ProfileNoteRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: ProfileNoteRepository::class)]
#[ORM\HasLifecycleCallbacks]
class ProfileNote
{
use \App\Traits\EntityDateTimeAbleTrait;
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\ManyToOne(targetEntity: Profile::class, inversedBy: 'profileNotes')]
private ?\App\Entity\Profile $profile = null;
#[ORM\ManyToOne(targetEntity: User::class, inversedBy: 'profileNotes')]
private ?\App\Entity\User $user = null;
#[ORM\Column(type: 'text', nullable: true)]
private ?string $note = null;
public function getId(): ?int
{
return $this->id;
}
public function getProfile(): ?Profile
{
return $this->profile;
}
public function setProfile(?Profile $profile): self
{
$this->profile = $profile;
return $this;
}
public function getUser(): ?User
{
return $this->user;
}
public function setUser(?User $user): self
{
$this->user = $user;
return $this;
}
public function getNote(): ?string
{
return $this->note;
}
public function setNote(?string $note): self
{
$this->note = $note;
return $this;
}
}