modules/QSL/ProductStickers/src/Model/ProductStickerTranslation.php line 22

Open in your IDE?
  1. <?php
  2. /**
  3.  * Copyright (c) 2011-present Qualiteam software Ltd. All rights reserved.
  4.  * See https://www.x-cart.com/license-agreement.html for license details.
  5.  */
  6. namespace QSL\ProductStickers\Model;
  7. use Doctrine\ORM\Mapping as ORM;
  8. /**
  9.  * @ORM\Entity
  10.  * @ORM\Table (name="product_stickers_translations",
  11.  *      indexes={
  12.  *          @ORM\Index (name="ci", columns={"code","id"}),
  13.  *      }
  14.  * )
  15.  *
  16.  */
  17. class ProductStickerTranslation extends \XLite\Model\Base\Translation
  18. {
  19.     /**
  20.      * Name
  21.      *
  22.      * @var string
  23.      *
  24.      * @ORM\Column (type="string")
  25.      */
  26.     protected $name;
  27.     /**
  28.      * @var \QSL\ProductStickers\Model\ProductSticker
  29.      *
  30.      * @ORM\ManyToOne (targetEntity="QSL\ProductStickers\Model\ProductSticker", inversedBy="translations")
  31.      * @ORM\JoinColumn (name="id", referencedColumnName="sticker_id", onDelete="CASCADE")
  32.      */
  33.     protected $owner;
  34.     /**
  35.      * @return string
  36.      */
  37.     public function getName()
  38.     {
  39.         return $this->name;
  40.     }
  41.     /**
  42.      * @param string $name
  43.      */
  44.     public function setName($name)
  45.     {
  46.         $this->name $name;
  47.     }
  48. }