Commit 410a0805 authored by Mat's avatar Mat

doctrine generate 2 entités: Offre et OffreLegumes

parent dcd4095d
<?php
namespace PotageBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Offre
*
* @ORM\Table(name="offre")
* @ORM\Entity(repositoryClass="PotageBundle\Repository\OffreRepository")
*/
class Offre
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @var string
*
* @ORM\Column(name="reference", type="string", length=16, unique=true)
*/
private $reference;
/**
* @var \DateTime
*
* @ORM\Column(name="createdAt", type="datetime")
*/
private $createdAt;
/**
* @var \DateTime
*
* @ORM\Column(name="updatedAt", type="datetime")
*/
private $updatedAt;
/**
* @var array
*
* @ORM\Column(name="statut", type="simple_array")
*/
private $statut;
/**
* @var \DateTime
*
* @ORM\Column(name="endedAt", type="datetime")
*/
private $endedAt;
/**
* Get id
*
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Set reference
*
* @param string $reference
*
* @return Offre
*/
public function setReference($reference)
{
$this->reference = $reference;
return $this;
}
/**
* Get reference
*
* @return string
*/
public function getReference()
{
return $this->reference;
}
/**
* Set createdAt
*
* @param \DateTime $createdAt
*
* @return Offre
*/
public function setCreatedAt($createdAt)
{
$this->createdAt = $createdAt;
return $this;
}
/**
* Get createdAt
*
* @return \DateTime
*/
public function getCreatedAt()
{
return $this->createdAt;
}
/**
* Set updatedAt
*
* @param \DateTime $updatedAt
*
* @return Offre
*/
public function setUpdatedAt($updatedAt)
{
$this->updatedAt = $updatedAt;
return $this;
}
/**
* Get updatedAt
*
* @return \DateTime
*/
public function getUpdatedAt()
{
return $this->updatedAt;
}
/**
* Set statut
*
* @param array $statut
*
* @return Offre
*/
public function setStatut($statut)
{
$this->statut = $statut;
return $this;
}
/**
* Get statut
*
* @return array
*/
public function getStatut()
{
return $this->statut;
}
/**
* Set endedAt
*
* @param \DateTime $endedAt
*
* @return Offre
*/
public function setEndedAt($endedAt)
{
$this->endedAt = $endedAt;
return $this;
}
/**
* Get endedAt
*
* @return \DateTime
*/
public function getEndedAt()
{
return $this->endedAt;
}
}
<?php
namespace PotageBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* OffreLegumes
*
* @ORM\Table(name="offre_legumes")
* @ORM\Entity(repositoryClass="PotageBundle\Repository\OffreLegumesRepository")
*/
class OffreLegumes
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @var float
*
* @ORM\Column(name="volume_max", type="float")
*/
private $volumeMax;
/**
* @var bool
*
* @ORM\Column(name="is_promo", type="boolean")
*/
private $isPromo;
/**
* @var string
*
* @ORM\Column(name="promo", type="string", length=100, nullable=true)
*/
private $promo;
/**
* Get id
*
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Set volumeMax
*
* @param float $volumeMax
*
* @return OffreLegumes
*/
public function setVolumeMax($volumeMax)
{
$this->volumeMax = $volumeMax;
return $this;
}
/**
* Get volumeMax
*
* @return float
*/
public function getVolumeMax()
{
return $this->volumeMax;
}
/**
* Set isPromo
*
* @param boolean $isPromo
*
* @return OffreLegumes
*/
public function setIsPromo($isPromo)
{
$this->isPromo = $isPromo;
return $this;
}
/**
* Get isPromo
*
* @return bool
*/
public function getIsPromo()
{
return $this->isPromo;
}
/**
* Set promo
*
* @param string $promo
*
* @return OffreLegumes
*/
public function setPromo($promo)
{
$this->promo = $promo;
return $this;
}
/**
* Get promo
*
* @return string
*/
public function getPromo()
{
return $this->promo;
}
}
<?php
namespace PotageBundle\Repository;
/**
* OffreLegumesRepository
*
* This class was generated by the Doctrine ORM. Add your own custom
* repository methods below.
*/
class OffreLegumesRepository extends \Doctrine\ORM\EntityRepository
{
}
<?php
namespace PotageBundle\Repository;
/**
* OffreRepository
*
* This class was generated by the Doctrine ORM. Add your own custom
* repository methods below.
*/
class OffreRepository extends \Doctrine\ORM\EntityRepository
{
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment