%PDF- %PDF-
Direktori : /home/emtnaeewxm/www/src/EEM/PieceBundle/Entity/ |
Current File : /home/emtnaeewxm/www/src/EEM/PieceBundle/Entity/LignePiece.php~ |
<?php namespace EEM\PieceBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * LignePiece * * @ORM\Table(name="ligne_piece") * @ORM\Entity(repositoryClass="EEM\PieceBundle\Repository\LignePieceRepository") */ class LignePiece { /** * @var int * * @ORM\Column(name="id", type="integer") * @ORM\Id * @ORM\GeneratedValue(strategy="AUTO") */ private $id; /** * @var string * * @ORM\Column(name="code_a_barre", type="string", length=255, nullable=true) */ private $codeABarre; /** * @var string * * @ORM\Column(name="name", type="string", length=255, nullable=true) */ private $name; /** * @var string * * @ORM\Column(name="prix", type="decimal", precision=10, scale=3, nullable=true) */ private $prix; /** * @var string * * @ORM\Column(name="total_prix", type="decimal", precision=10, scale=3, nullable=true) */ private $totalPrix; /** * @var int * * @ORM\Column(name="qte", type="integer", nullable=true) */ private $qte; /** * @var string * * @ORM\ManyToOne(targetEntity="EEM\PieceBundle\Entity\Piece" , inversedBy="lignePieces") * @ORM\JoinColumn(name="piece_id") */ private $piece; /** * @var string * * @ORM\ManyToOne(targetEntity="EEM\ArticleBundle\Entity\Article" , inversedBy="lignePieces") * @ORM\JoinColumn(name="article_id") */ private $article; /** * Get id * * @return int */ public function getId() { return $this->id; } /** * Set name * * @param string $name * * @return LignePiece */ public function setName($name) { $this->name = $name; return $this; } /** * Get name * * @return string */ public function getName() { return $this->name; } /** * Set prix * * @param string $prix * * @return LignePiece */ public function setPrix($prix) { $this->prix = $prix; return $this; } /** * Get prix * * @return string */ public function getPrix() { return $this->prix; } /** * Set qte * * @param integer $qte * * @return LignePiece */ public function setQte($qte) { $this->qte = $qte; return $this; } /** * Get qte * * @return integer */ public function getQte() { return $this->qte; } /** * Set piece * * @param \EEM\PieceBundle\Entity\Piece $piece * * @return LignePiece */ public function setPiece(\EEM\PieceBundle\Entity\Piece $piece = null) { $this->piece = $piece; return $this; } /** * Get piece * * @return \EEM\PieceBundle\Entity\Piece */ public function getPiece() { return $this->piece; } /** * Set article * * @param \EEM\ArticleBundle\Entity\Article $article * * @return LignePiece */ public function setArticle(\EEM\ArticleBundle\Entity\Article $article = null) { $this->article = $article; return $this; } /** * Get article * * @return \EEM\ArticleBundle\Entity\Article */ public function getArticle() { return $this->article; } /** * Set codeABarre * * @param string $codeABarre * * @return LignePiece */ public function setCodeABarre($codeABarre) { $this->codeABarre = $codeABarre; return $this; } /** * Get codeABarre * * @return string */ public function getCodeABarre() { return $this->codeABarre; } }