<?php
namespace App\Entity\MarketPlace;
use DateTime;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Annotation as Gedmo;
use Symfony\Component\Validator\Constraints as Assert;
use Doctrine\ORM\Mapping\Index;
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
use App\Annotations\SecuredEntity;
/**
* Profil
*
* @ORM\Table("market_place__profil")
* @ORM\Entity(repositoryClass="App\Repository\MarketPlace\ProfilRepository")
* @SecuredEntity (name="Profil", group="MARKETPLACE")
*/
class Profil
{
/**
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @ORM\Column(name="libelle", type="string", length=255, nullable=true)
*/
private $libelle;
/**
* @ORM\Column(name="date", type="datetime", nullable=true)
*/
private $date;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\MarketPlace\TypeProduit", cascade={"persist"})
* @ORM\OrderBy({"libelle" = "ASC"})
*/
private $typeProduit;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\MarketPlace\TypeProduit", cascade={"persist"})
* @ORM\OrderBy({"libelle" = "ASC"})
*/
private $typeProduitEnfant;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\MarketPlace\MarketPlace", cascade={"persist"})
*/
private $marketPlace;
public function __construct()
{
$this->date = new Datetime();
}
public function getId(): int
{
return $this->id;
}
public function setLibelle(?string $libelle): Profil
{
$this->libelle = $libelle;
return $this;
}
public function getLibelle(): ?string
{
return $this->libelle;
}
public function setDate(?DateTime $date): Profil
{
$this->date = $date;
return $this;
}
public function getDate(): ?DateTime
{
return $this->date;
}
public function setMarketPlace(?MarketPlace $marketPlace): Profil
{
$this->marketPlace = $marketPlace;
return $this;
}
public function getMarketPlace(): ?MarketPlace
{
return $this->marketPlace;
}
public function setTypeProduit(?TypeProduit $typeProduit): Profil
{
$this->typeProduit = $typeProduit;
return $this;
}
public function getTypeProduit(): ?TypeProduit
{
return $this->typeProduit;
}
public function setTypeProduitEnfant(?TypeProduit $typeProduitEnfant): Profil
{
$this->typeProduitEnfant = $typeProduitEnfant;
return $this;
}
public function getTypeProduitEnfant(): ?TypeProduit
{
return $this->typeProduitEnfant;
}
}