src/OfficeBrain/Bundle/ProductBundle/Entity/RelatedProduct.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\OfficeBrain\Bundle\ProductBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Gedmo\Mapping\Annotation as Gedmo;
  5. /**
  6.  * RelatedProduct
  7.  *
  8.  * @ORM\Table("tbl_related_product")
  9.  * @ORM\Entity(repositoryClass="App\OfficeBrain\Bundle\ProductBundle\Entity\RelatedProductRepository")
  10.  */
  11. class RelatedProduct
  12. {
  13.     /**
  14.      * @var integer
  15.      *
  16.      * @ORM\Column(name="id", type="integer")
  17.      * @ORM\Id
  18.      * @ORM\GeneratedValue(strategy="AUTO")
  19.      */
  20.     private $id;
  21.     /**
  22.      * @var integer
  23.      *
  24.      * @ORM\Column(name="product_id", type="integer")
  25.      */
  26.     private $productId;
  27.     
  28.     /**
  29.      * @var integer
  30.      *
  31.      * @ORM\Column(name="related_product_id", type="integer")
  32.      */
  33.     private $relatedProductId;
  34.     /**
  35.      * @var string
  36.      *
  37.      * @ORM\Column(name="culture", type="string")
  38.      */
  39.     private $culture;
  40.     
  41.     /**
  42.      * @var \DateTime
  43.      * @Gedmo\Timestampable(on="create")
  44.      * @ORM\Column(name="created_at", type="datetime", nullable=true)
  45.      */
  46.     private $createdAt;
  47.     /**
  48.      * @var \DateTime
  49.      * @Gedmo\Timestampable(on="update")
  50.      * @ORM\Column(name="updated_at", type="datetime", nullable=true)
  51.      */
  52.     private $updatedAt;
  53.     /**
  54.      * @var \DateTime
  55.      *
  56.      * @ORM\Column(name="deleted_at", type="datetime", nullable=true)
  57.      */
  58.     private $deletedAt;
  59.     /**
  60.      * Get id
  61.      *
  62.      * @return integer 
  63.      */
  64.     public function getId()
  65.     {
  66.         return $this->id;
  67.     }
  68.     /**
  69.      * Set productId
  70.      *
  71.      * @param integer $productId
  72.      * @return RelatedProduct
  73.      */
  74.     public function setProductId($productId)
  75.     {
  76.         $this->productId $productId;
  77.         return $this;
  78.     }
  79.     /**
  80.      * Get productId
  81.      *
  82.      * @return integer 
  83.      */
  84.     public function getProductId()
  85.     {
  86.         return $this->productId;
  87.     }
  88.     /**
  89.      * Set relatedProductId
  90.      *
  91.      * @param integer $relatedProductId
  92.      * @return RelatedProduct
  93.      */
  94.     public function setRelatedProductId($relatedProductId)
  95.     {
  96.         $this->relatedProductId $relatedProductId;
  97.         return $this;
  98.     }
  99.     /**
  100.      * Get relatedProductId
  101.      *
  102.      * @return integer 
  103.      */
  104.     public function getRelatedProductId()
  105.     {
  106.         return $this->relatedProductId;
  107.     }
  108.     /**
  109.      * Get culture
  110.      *
  111.      * @return string
  112.      */
  113.     public function getculture()
  114.     {
  115.         return $this->culture;
  116.     }
  117.     
  118.     /**
  119.      * Set culture
  120.      *
  121.      * @param string $culture
  122.      * @return culture
  123.      */
  124.     public function setculture($culture)
  125.     {
  126.         $this->culture $culture;
  127.     
  128.         return $this;
  129.     }
  130.     
  131.     /**
  132.      * Set createdAt
  133.      *
  134.      * @param \DateTime $createdAt
  135.      * @return RelatedProduct
  136.      */
  137.     public function setCreatedAt($createdAt)
  138.     {
  139.         $this->createdAt $createdAt;
  140.         return $this;
  141.     }
  142.     /**
  143.      * Get createdAt
  144.      *
  145.      * @return \DateTime 
  146.      */
  147.     public function getCreatedAt()
  148.     {
  149.         return $this->createdAt;
  150.     }
  151.     /**
  152.      * Set updatedAt
  153.      *
  154.      * @param \DateTime $updatedAt
  155.      * @return RelatedProduct
  156.      */
  157.     public function setUpdatedAt($updatedAt)
  158.     {
  159.         $this->updatedAt $updatedAt;
  160.         return $this;
  161.     }
  162.     /**
  163.      * Get updatedAt
  164.      *
  165.      * @return \DateTime 
  166.      */
  167.     public function getUpdatedAt()
  168.     {
  169.         return $this->updatedAt;
  170.     }
  171.     /**
  172.      * Set deletedAt
  173.      *
  174.      * @param \DateTime $deletedAt
  175.      * @return RelatedProduct
  176.      */
  177.     public function setDeletedAt($deletedAt)
  178.     {
  179.         $this->deletedAt $deletedAt;
  180.         return $this;
  181.     }
  182.     /**
  183.      * Get deletedAt
  184.      *
  185.      * @return \DateTime 
  186.      */
  187.     public function getDeletedAt()
  188.     {
  189.         return $this->deletedAt;
  190.     }
  191. }