Commit 5087774d authored by Mat's avatar Mat

doctrine:generate:entity PotageBundle:Legume

parent 8373df5f
<?php
namespace PotageBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Legume
*
* @ORM\Table(name="legume")
* @ORM\Entity(repositoryClass="PotageBundle\Repository\LegumeRepository")
*/
class Legume
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @var string
*
* @ORM\Column(name="nom", type="string", length=100)
*/
private $nom;
/**
* @var string
*
* @ORM\Column(name="description", type="text")
*/
private $description;
/**
* @var string
*
* @ORM\Column(name="logo_path", type="string", length=100, nullable=true)
*/
private $logoPath;
/**
* @var string
*
* @ORM\Column(name="unite", type="string", length=25)
*/
private $unite;
/**
* @var float
*
* @ORM\Column(name="quantite_min", type="float", nullable=true)
*/
private $quantiteMin;
/**
* @var float
*
* @ORM\Column(name="quantite_max", type="float", nullable=true)
*/
private $quantiteMax;
/**
* @var float
*
* @ORM\Column(name="quantite_step", type="float", nullable=true)
*/
private $quantiteStep;
/**
* @var float
*
* @ORM\Column(name="prix_unitaire", type="float")
*/
private $prixUnitaire;
/**
* Get id
*
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Set nom
*
* @param string $nom
*
* @return Legume
*/
public function setNom($nom)
{
$this->nom = $nom;
return $this;
}
/**
* Get nom
*
* @return string
*/
public function getNom()
{
return $this->nom;
}
/**
* Set description
*
* @param string $description
*
* @return Legume
*/
public function setDescription($description)
{
$this->description = $description;
return $this;
}
/**
* Get description
*
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Set logoPath
*
* @param string $logoPath
*
* @return Legume
*/
public function setLogoPath($logoPath)
{
$this->logoPath = $logoPath;
return $this;
}
/**
* Get logoPath
*
* @return string
*/
public function getLogoPath()
{
return $this->logoPath;
}
/**
* Set unite
*
* @param string $unite
*
* @return Legume
*/
public function setUnite($unite)
{
$this->unite = $unite;
return $this;
}
/**
* Get unite
*
* @return string
*/
public function getUnite()
{
return $this->unite;
}
/**
* Set quantiteMin
*
* @param float $quantiteMin
*
* @return Legume
*/
public function setQuantiteMin($quantiteMin)
{
$this->quantiteMin = $quantiteMin;
return $this;
}
/**
* Get quantiteMin
*
* @return float
*/
public function getQuantiteMin()
{
return $this->quantiteMin;
}
/**
* Set quantiteMax
*
* @param float $quantiteMax
*
* @return Legume
*/
public function setQuantiteMax($quantiteMax)
{
$this->quantiteMax = $quantiteMax;
return $this;
}
/**
* Get quantiteMax
*
* @return float
*/
public function getQuantiteMax()
{
return $this->quantiteMax;
}
/**
* Set quantiteStep
*
* @param float $quantiteStep
*
* @return Legume
*/
public function setQuantiteStep($quantiteStep)
{
$this->quantiteStep = $quantiteStep;
return $this;
}
/**
* Get quantiteStep
*
* @return float
*/
public function getQuantiteStep()
{
return $this->quantiteStep;
}
/**
* Set prixUnitaire
*
* @param float $prixUnitaire
*
* @return Legume
*/
public function setPrixUnitaire($prixUnitaire)
{
$this->prixUnitaire = $prixUnitaire;
return $this;
}
/**
* Get prixUnitaire
*
* @return float
*/
public function getPrixUnitaire()
{
return $this->prixUnitaire;
}
}
<?php
namespace PotageBundle\Repository;
/**
* LegumeRepository
*
* This class was generated by the Doctrine ORM. Add your own custom
* repository methods below.
*/
class LegumeRepository 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