<?php
namespace App\Entity;
use App\Repository\PhotoRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* Photo
*
* @ORM\Entity(repositoryClass="App\Repository\PhotoRepository")
*/
#[ORM\Entity(repositoryClass: PhotoRepository::class)]
#[ORM\Table(name: 'photo')]
class Photo {
#[ORM\Id]
#[ORM\Column(type: "integer")]
#[ORM\GeneratedValue(strategy: "AUTO")]
private ?int $id;
#[ORM\Column(type: "boolean")]
private bool $isDeleted = false;
public function __toString() {
return "#" . $this->id;
}
/**
* Get id
*
* @return int
*/
public function getId() {
return $this->id;
}
/**
* Set isDeleted
*
* @param boolean $isDeleted
*
* @return Photo
*/
public function setIsDeleted($isDeleted)
{
$this->isDeleted = $isDeleted;
return $this;
}
/**
* Get isDeleted
*
* @return boolean
*/
public function getIsDeleted()
{
return $this->isDeleted;
}
}