<?phpnamespace App\Entity\Houses;use App\Entity\Core\Users;use App\Entity\Dossiers\Fiches;use App\Entity\Core\Agencies;use Doctrine\DBAL\Types\Types;use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;use Symfony\Component\Validator\Constraints as Assert;use Doctrine\ORM\Mapping as ORM;/** * Syndicats * * @ORM\Table("houses_syndicats") * @ORM\Entity(repositoryClass="App\Repository\Houses\SyndicatsRepository") * @ORM\HasLifecycleCallbacks() */class Syndicats{ /** * @var integer * * @ORM\Column(name="id", type="integer") * @ORM\Id * @ORM\GeneratedValue(strategy="AUTO") */ protected $id; /** * @var string * * @ORM\Column(name="created_at", type="datetime", nullable=true, options={"comment":"Date de création"}) */ private $createdAt; /** * @var string * * @ORM\Column(name="updated_at", type="datetime", nullable=true, options={"comment":"Date de mise à jour"}) */ private $updatedAt; /** * @var string * * @ORM\Column(name="reference", type="string", length=255, nullable=true) */ private $reference; /** * @var string * * @ORM\Column(name="title", type="string", length=255, nullable=true) */ private $title; /** * @var string * * @ORM\Column(name="description", type="text", nullable=true) */ private $description; /** * @var string * * @ORM\Column(name="type", type="string", length=255, nullable=true) */ private $type; /** * @var string * * @ORM\Column(name="point_x", type="string", length=255, nullable=true) */ private $pointX; /** * @var string * * @ORM\Column(name="point_y", type="string", length=255, nullable=true) */ private $pointY; /** * @var string * * @ORM\Column(name="address", type="text", nullable=true) */ private $address; /** * @var string * * @ORM\Column(name="zipcode", type="text", nullable=true) */ private $zipcode; /** * @var string * * @ORM\Column(name="city", type="text", nullable=true) */ private $city; /** * @var string * * @ORM\Column(name="country", type="text", nullable=true) */ private $country; /** * @var \Fiches * * @ORM\ManyToOne(targetEntity="App\Entity\Dossiers\Fiches") * @ORM\JoinColumns({ * @ORM\JoinColumn(name="fiche_id", referencedColumnName="id", nullable=true) * }) */ protected $fiche; /** * @var \Agencies * * @ORM\ManyToOne(targetEntity="App\Entity\Core\Agencies") * @ORM\JoinColumns({ * @ORM\JoinColumn(name="agency_id", referencedColumnName="id", nullable=true) * }) */ protected $agency; /** * @ORM\PrePersist */ public function setCreatedAtValue(): void { $this->setCreatedAt(new \DateTime("now")); $this->setUpdatedAt(new \DateTime("now")); } /** * @ORM\PreUpdate */ public function setUpdatedAtValue(): void { $this->setUpdatedAt(new \DateTime("now")); } public function __toString() { return (string)$this->title; } public function getId(): ?int { return $this->id; } public function getCreatedAt(): ?\DateTimeInterface { return $this->createdAt; } public function setCreatedAt(?\DateTimeInterface $createdAt): self { $this->createdAt = $createdAt; return $this; } public function getUpdatedAt(): ?\DateTimeInterface { return $this->updatedAt; } public function setUpdatedAt(?\DateTimeInterface $updatedAt): self { $this->updatedAt = $updatedAt; return $this; } public function getReference(): ?string { return $this->reference; } public function setReference(?string $reference): self { $this->reference = $reference; return $this; } public function getTitle(): ?string { return $this->title; } public function setTitle(?string $title): self { $this->title = $title; return $this; } public function getDescription(): ?string { return $this->description; } public function setDescription(?string $description): self { $this->description = $description; return $this; } public function getType(): ?string { return $this->type; } public function setType(?string $type): self { $this->type = $type; return $this; } public function getPointX(): ?string { return $this->pointX; } public function setPointX(?string $pointX): self { $this->pointX = $pointX; return $this; } public function getPointY(): ?string { return $this->pointY; } public function setPointY(?string $pointY): self { $this->pointY = $pointY; return $this; } public function getAddress(): ?string { return $this->address; } public function setAddress(?string $address): self { $this->address = $address; return $this; } public function getZipcode(): ?string { return $this->zipcode; } public function setZipcode(?string $zipcode): self { $this->zipcode = $zipcode; return $this; } public function getCity(): ?string { return $this->city; } public function setCity(?string $city): self { $this->city = $city; return $this; } public function getCountry(): ?string { return $this->country; } public function setCountry(?string $country): self { $this->country = $country; return $this; } public function getFiche(): ?Fiches { return $this->fiche; } public function setFiche(?Fiches $fiche): self { $this->fiche = $fiche; return $this; } public function getAgency(): ?\App\Entity\Core\Agencies { return $this->agency; } public function setAgency(?\App\Entity\Core\Agencies $agency): self { $this->agency = $agency; return $this; } }