src/OfficeBrain/Bundle/WishListBundle/Entity/WishList.php line 18

Open in your IDE?
  1. <?php
  2. namespace App\OfficeBrain\Bundle\WishListBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Gedmo\Mapping\Annotation as Gedmo;
  5. /**
  6.  * WishList
  7.  *
  8.  * @ORM\Table(name="tbl_wish_list", options={"type"="InnoDB","charset"="utf8","collate"="utf8_unicode_ci"}, indexes={
  9.  *         @ORM\Index(columns={"user_id", "culture_id", "instance_id"}),
  10.  *         @ORM\Index(columns={"product_id", "culture_product_id", "user_id", "culture_id", "instance_id"})
  11.  *     },))
  12.  * @ORM\Entity(repositoryClass="App\OfficeBrain\Bundle\WishListBundle\Entity\WishListRepository")
  13.  * @Gedmo\SoftDeleteable(fieldName="deletedAt", timeAware=false)
  14.  */
  15. class WishList
  16. {
  17.     /**
  18.      * @var integer
  19.      *
  20.      * @ORM\Column(name="id", type="bigint", length=20, options={"unsigned"=true})
  21.      * @ORM\Id
  22.      * @ORM\GeneratedValue(strategy="AUTO")
  23.      */
  24.     private $id;
  25.     
  26.     /**
  27.      * @var integer
  28.      *
  29.      * @ORM\Column(name="product_id", type="bigint", length=20, options={"unsigned"=true})
  30.      */
  31.     protected $productId;
  32.     
  33.     /**
  34.      * @var integer
  35.      *
  36.      * @ORM\Column(name="culture_product_id", type="bigint", length=20, options={"unsigned"=true})
  37.      */
  38.     protected $cultureProductId ;
  39.     /**
  40.      * @var integer
  41.      *
  42.      * @ORM\Column(name="culture_id", type="bigint", length=20, options={"unsigned"=true})
  43.      */
  44.     protected $cultureId;
  45.     /**
  46.      * @var integer
  47.      *
  48.      * @ORM\Column(name="user_id", type="bigint", length=20, options={"unsigned"=true})
  49.      */
  50.     protected $userId;
  51.     /**
  52.      * @var integer
  53.      *
  54.      * @ORM\Column(name="created_uid", type="bigint", length=20, options={"unsigned"=true})
  55.      */
  56.     protected $createdUid;
  57.     /**
  58.      * @var integer
  59.      *
  60.      * @ORM\Column(name="upated_uid", type="bigint", length=20, options={"unsigned"=true})
  61.      */
  62.     protected $upatedUid;
  63.     /**
  64.      * @var integer
  65.      *
  66.      * @ORM\Column(name="deleted_uid", type="bigint", length=20, nullable=true, options={"unsigned"=true})
  67.      */
  68.     protected $deletedUid;
  69.     /**
  70.      * @var integer
  71.      *
  72.      * @ORM\Column(name="instance_id", type="bigint", length=20, options={"unsigned"=true})
  73.      */
  74.     protected $instanceId;
  75.     
  76.     /**
  77.     * @var string
  78.     *
  79.     * @ORM\Column(name="instance_type", type="string", length=255, options={"collate"="utf8_unicode_ci"})
  80.     */
  81.     protected $instanceType;
  82.     /**
  83.      * @var datetime
  84.      *
  85.      * @Gedmo\Timestampable(on="create")
  86.      * @ORM\Column(type="datetime", name="created_at")
  87.      */
  88.     protected $createdAt;
  89.     
  90.     /**
  91.      * @var datetime
  92.      *
  93.      * @Gedmo\Timestampable(on="update")
  94.      * @ORM\Column(type="datetime", name="updated_at", nullable=true)
  95.      */
  96.     protected $updatedAt;
  97.     
  98.     
  99.     /**
  100.      * @var datetime
  101.      *
  102.      * @ORM\Column(type="datetime", name="deleted_at", nullable=true)
  103.      */
  104.     protected $deletedAt;
  105.     
  106.     /**
  107.      * Get id
  108.      *
  109.      * @return integer
  110.      */
  111.     public function getId()
  112.     {
  113.         return $this->id;
  114.     }
  115.     /**
  116.      * Set productId
  117.      *
  118.      * @param integer $productId
  119.      * @return WishList
  120.      */
  121.     public function setProductId($productId)
  122.     {
  123.         $this->productId $productId;
  124.         return $this;
  125.     }
  126.     /**
  127.      * Get productId
  128.      *
  129.      * @return integer
  130.      */
  131.     public function getProductId()
  132.     {
  133.         return $this->productId;
  134.     }
  135.     /**
  136.      * Set cultureProductId
  137.      *
  138.      * @param integer $cultureProductId
  139.      * @return WishList
  140.      */
  141.     public function setCultureProductId($cultureProductId)
  142.     {
  143.         $this->cultureProductId $cultureProductId;
  144.         return $this;
  145.     }
  146.     /**
  147.      * Get cultureProductId
  148.      *
  149.      * @return integer
  150.      */
  151.     public function getCultureProductId()
  152.     {
  153.         return $this->cultureProductId;
  154.     }
  155.     /**
  156.      * Set cultureId
  157.      *
  158.      * @param integer $cultureId
  159.      * @return WishList
  160.      */
  161.     public function setCultureId($cultureId)
  162.     {
  163.         $this->cultureId $cultureId;
  164.         return $this;
  165.     }
  166.     /**
  167.      * Get cultureId
  168.      *
  169.      * @return integer
  170.      */
  171.     public function getCultureId()
  172.     {
  173.         return $this->cultureId;
  174.     }
  175.     /**
  176.      * Set userId
  177.      *
  178.      * @param integer $userId
  179.      * @return WishList
  180.      */
  181.     public function setUserId($userId)
  182.     {
  183.         $this->userId $userId;
  184.         return $this;
  185.     }
  186.     /**
  187.      * Get userId
  188.      *
  189.      * @return integer
  190.      */
  191.     public function getUserId()
  192.     {
  193.         return $this->userId;
  194.     }
  195.     /**
  196.      * Set createdUid
  197.      *
  198.      * @param integer $createdUid
  199.      * @return WishList
  200.      */
  201.     public function setCreatedUid($createdUid)
  202.     {
  203.         $this->createdUid $createdUid;
  204.         return $this;
  205.     }
  206.     /**
  207.      * Get createdUid
  208.      *
  209.      * @return integer
  210.      */
  211.     public function getCreatedUid()
  212.     {
  213.         return $this->createdUid;
  214.     }
  215.     /**
  216.      * Set upatedUid
  217.      *
  218.      * @param integer $upatedUid
  219.      * @return WishList
  220.      */
  221.     public function setUpatedUid($upatedUid)
  222.     {
  223.         $this->upatedUid $upatedUid;
  224.         return $this;
  225.     }
  226.     /**
  227.      * Get upatedUid
  228.      *
  229.      * @return integer
  230.      */
  231.     public function getUpatedUid()
  232.     {
  233.         return $this->upatedUid;
  234.     }
  235.     /**
  236.      * Set deletedUid
  237.      *
  238.      * @param integer $deletedUid
  239.      * @return WishList
  240.      */
  241.     public function setDeletedUid($deletedUid)
  242.     {
  243.         $this->deletedUid $deletedUid;
  244.         return $this;
  245.     }
  246.     /**
  247.      * Get deletedUid
  248.      *
  249.      * @return integer
  250.      */
  251.     public function getDeletedUid()
  252.     {
  253.         return $this->deletedUid;
  254.     }
  255.     /**
  256.      * Set instanceId
  257.      *
  258.      * @param integer $instanceId
  259.      * @return WishList
  260.      */
  261.     public function setInstanceId($instanceId)
  262.     {
  263.         $this->instanceId $instanceId;
  264.         return $this;
  265.     }
  266.     /**
  267.      * Get instanceId
  268.      *
  269.      * @return integer
  270.      */
  271.     public function getInstanceId()
  272.     {
  273.         return $this->instanceId;
  274.     }
  275.     /**
  276.      * Set instanceType
  277.      *
  278.      * @param string $instanceType
  279.      * @return WishList
  280.      */
  281.     public function setInstanceType($instanceType)
  282.     {
  283.         $this->instanceType $instanceType;
  284.         return $this;
  285.     }
  286.     /**
  287.      * Get instanceType
  288.      *
  289.      * @return string
  290.      */
  291.     public function getInstanceType()
  292.     {
  293.         return $this->instanceType;
  294.     }
  295.     /**
  296.      * Set createdAt
  297.      *
  298.      * @param \DateTime $createdAt
  299.      * @return WishList
  300.      */
  301.     public function setCreatedAt($createdAt)
  302.     {
  303.         $this->createdAt $createdAt;
  304.         return $this;
  305.     }
  306.     /**
  307.      * Get createdAt
  308.      *
  309.      * @return \DateTime
  310.      */
  311.     public function getCreatedAt()
  312.     {
  313.         return $this->createdAt;
  314.     }
  315.     /**
  316.      * Set updatedAt
  317.      *
  318.      * @param \DateTime $updatedAt
  319.      * @return WishList
  320.      */
  321.     public function setUpdatedAt($updatedAt)
  322.     {
  323.         $this->updatedAt $updatedAt;
  324.         return $this;
  325.     }
  326.     /**
  327.      * Get updatedAt
  328.      *
  329.      * @return \DateTime
  330.      */
  331.     public function getUpdatedAt()
  332.     {
  333.         return $this->updatedAt;
  334.     }
  335.     /**
  336.      * Set deletedAt
  337.      *
  338.      * @param \DateTime $deletedAt
  339.      * @return WishList
  340.      */
  341.     public function setDeletedAt($deletedAt)
  342.     {
  343.         $this->deletedAt $deletedAt;
  344.         return $this;
  345.     }
  346.     /**
  347.      * Get deletedAt
  348.      *
  349.      * @return \DateTime
  350.      */
  351.     public function getDeletedAt()
  352.     {
  353.         return $this->deletedAt;
  354.     }
  355. }