<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* EvaluationComment
*/
#[ORM\Table(name: 'evaluation_comment')]
#[ORM\Index(name: 'evaluation_id', columns: ['evaluation_id'])]
#[ORM\Entity]
class EvaluationComment
{
#[ORM\Column(name: 'id', type: 'integer', nullable: false)]
#[ORM\Id]
#[ORM\GeneratedValue(strategy: 'IDENTITY')]
private int $id;
#[ORM\JoinColumn(name: 'evaluation_id', referencedColumnName: 'id', nullable: false)]
#[ORM\ManyToOne(targetEntity: 'Evaluation')]
private Evaluation $evaluation;
public function getId(): ?int
{
return $this->id;
}
public function getEvaluation(): ?Evaluation
{
return $this->evaluation;
}
public function setEvaluation(?Evaluation $evaluation): self
{
$this->evaluation = $evaluation;
return $this;
}
}