2018-08-22 16:42:21 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace AppBundle\Entity;
|
|
|
|
|
|
|
|
use AppBundle\Traits\Commentable;
|
|
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Festival
|
|
|
|
*
|
|
|
|
* @ORM\Table(name="serieFestival")
|
|
|
|
* @ORM\Entity(repositoryClass="AppBundle\Repository\FestivalRepository")
|
|
|
|
*/
|
|
|
|
class SerieFestival {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var int
|
|
|
|
*
|
|
|
|
* @ORM\Column(name="id", type="integer")
|
|
|
|
* @ORM\Id
|
|
|
|
* @ORM\GeneratedValue(strategy="AUTO")
|
|
|
|
*/
|
|
|
|
private $id;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*
|
|
|
|
* @ORM\Column(name="name", type="string", length=255)
|
|
|
|
*/
|
|
|
|
private $name;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* variabilised products sold
|
|
|
|
* @ORM\OneToMany(targetEntity="AppBundle\Entity\Festival", mappedBy="serieFestival")
|
|
|
|
*/
|
|
|
|
private $festivals;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var \DateTime
|
|
|
|
*
|
|
|
|
* @ORM\Column(name="dateCreation", type="datetime")
|
|
|
|
*/
|
|
|
|
private $dateCreation;
|
|
|
|
|
2018-08-27 14:58:45 +02:00
|
|
|
/**
|
2019-07-04 17:51:14 +02:00
|
|
|
* @ORM\ManyToOne(targetEntity="AppBundle\Entity\User", inversedBy="seriesFestivals")
|
2018-08-27 14:58:45 +02:00
|
|
|
*/
|
|
|
|
private $user;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return mixed
|
|
|
|
*/
|
|
|
|
public function getUser()
|
|
|
|
{
|
|
|
|
return $this->user;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param mixed $user
|
|
|
|
*/
|
|
|
|
public function setUser($user)
|
|
|
|
{
|
|
|
|
$this->user = $user;
|
|
|
|
}
|
|
|
|
|
2018-08-22 16:42:21 +02:00
|
|
|
/**
|
|
|
|
* @return int
|
|
|
|
*/
|
|
|
|
public function getId()
|
|
|
|
{
|
|
|
|
return $this->id;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param int $id
|
|
|
|
*/
|
|
|
|
public function setId($id)
|
|
|
|
{
|
|
|
|
$this->id = $id;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
public function getName()
|
|
|
|
{
|
|
|
|
return $this->name;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param string $name
|
|
|
|
*/
|
|
|
|
public function setName($name)
|
|
|
|
{
|
|
|
|
$this->name = $name;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return mixed
|
|
|
|
*/
|
|
|
|
public function getFestivals()
|
|
|
|
{
|
|
|
|
return $this->festivals;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param mixed $festivals
|
|
|
|
*/
|
|
|
|
public function setFestivals($festivals)
|
|
|
|
{
|
|
|
|
$this->festivals = $festivals;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return \DateTime
|
|
|
|
*/
|
|
|
|
public function getDateCreation()
|
|
|
|
{
|
|
|
|
return $this->dateCreation;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param \DateTime $dateCreation
|
|
|
|
*/
|
|
|
|
public function setDateCreation($dateCreation)
|
|
|
|
{
|
|
|
|
$this->dateCreation = $dateCreation;
|
|
|
|
}
|
2019-07-04 17:51:14 +02:00
|
|
|
}
|