src/OfficeBrain/Bundle/EcatalogueBundle/Entity/EcatalogueLanguage.php line 22

Open in your IDE?
  1. <?php
  2. namespace App\OfficeBrain\Bundle\EcatalogueBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Symfony\Component\Validator\Constraints as Assert;
  5. /**
  6.  *
  7.  * @author OfficeBrain 4488 <info@officebrain.com>
  8.  *
  9.  * Decsription: All Ecatalogue language will be saved in Ecatalogue Language table (tbl_ecatalogue_language).
  10.  *
  11.  */
  12. /**
  13.  * EcatalogueLanguage
  14.  *
  15.  * @ORM\Table("tbl_ecatalogue_language")
  16.  * @ORM\Entity(repositoryClass="App\OfficeBrain\Bundle\EcatalogueBundle\Entity\EcatalogueLanguageRepository")
  17.  */
  18. class EcatalogueLanguage
  19. {
  20.     /**
  21.      * @var integer
  22.      *
  23.      * @ORM\Column(name="id", type="integer")
  24.      * @ORM\Id
  25.      * @ORM\GeneratedValue(strategy="AUTO")
  26.      */
  27.     private $id;
  28.     /**
  29.      * Bidirectional (OWNING SIDE - FK)
  30.      *
  31.      * @ORM\ManyToOne(targetEntity="Ecatalogue", inversedBy="ecatalogueLanguage")
  32.      * @ORM\JoinColumn(name="catalogue_id", referencedColumnName="id", onDelete="CASCADE")
  33.      *
  34.      */
  35.     private $ecatalogueId;
  36.     
  37.     /**
  38.      * @var integer
  39.      *
  40.      * @ORM\Column(name="language_id", type="integer")
  41.      */
  42.     private $languageId;
  43.     
  44.     /**
  45.      * @var string
  46.      *
  47.      * @ORM\Column(name="catalogue_title", type="string", length=255, nullable=true)
  48.      */
  49.     private $ecatalogueTitle;
  50.     
  51.     /**
  52.      * @ORM\Column(type="text", name="catalogue_file", nullable=true)
  53.      * @Assert\File(
  54.      *     mimeTypes = {"application/pdf", "application/x-pdf"},
  55.      *     mimeTypesMessage = "")
  56.      */
  57.     protected $catalogueFile;
  58.     
  59.     /**
  60.      * @ORM\Column(type="text", name="catalogue_image",nullable=true)
  61.      * @Assert\File(
  62.      *     mimeTypes = {"image/jpeg", "image/jpg", "image/png", "image/gif", "image/pjpeg"},
  63.      *     mimeTypesMessage = "")
  64.      */
  65.     protected $catalogueImage;
  66.     
  67.     /**
  68.      * @ORM\Column(type="string", name="catalogue_url", length=355, nullable=true)
  69.      */
  70.     protected $catalogueUrl;
  71.     
  72.     
  73.     /**
  74.      * Get id
  75.      *
  76.      * @return integer 
  77.      */
  78.     public function getId()
  79.     {
  80.         return $this->id;
  81.     }
  82.     public function getEcatalogueId() {
  83.         return $this->ecatalogueId;
  84.     }
  85.     public function setEcatalogueId($ecatalogueId) {
  86.         $this->ecatalogueId $ecatalogueId;
  87.         return $this;
  88.     }
  89.     public function getLanguageId() {
  90.         return $this->languageId;
  91.     }
  92.     public function setLanguageId($languageId) {
  93.         $this->languageId $languageId;
  94.         return $this;
  95.     }
  96.     public function getEcatalogueTitle() {
  97.         return $this->ecatalogueTitle;
  98.     }
  99.     public function setEcatalogueTitle($ecatalogueTitle) {
  100.         $this->ecatalogueTitle $ecatalogueTitle;
  101.         return $this;
  102.     }
  103.     public function getCatalogueUrl() {
  104.         return $this->catalogueUrl;
  105.     }
  106.     public function setCatalogueUrl($catalogueUrl) {
  107.         $this->catalogueUrl $catalogueUrl;
  108.         return $this;
  109.     }
  110.     
  111.     
  112.     /**
  113.      * Set catalogueFile
  114.      *
  115.      * @param string $catalogueFile
  116.      * @return EcatalogueLanguage
  117.      */
  118.     public function setCatalogueFile($catalogueFile)
  119.     {
  120.         $this->catalogueFile $catalogueFile;
  121.         return $this;
  122.     }
  123.     /**
  124.      * Get catalogueFile
  125.      *
  126.      * @return string 
  127.      */
  128.     public function getCatalogueFile()
  129.     {
  130.         return $this->catalogueFile;
  131.     }
  132.     /**
  133.      * Set catalogueImage
  134.      *
  135.      * @param string $catalogueImage
  136.      * @return EcatalogueLanguage
  137.      */
  138.     public function setCatalogueImage($catalogueImage)
  139.     {
  140.         $this->catalogueImage $catalogueImage;
  141.         return $this;
  142.     }
  143.     /**
  144.      * Get catalogueImage
  145.      *
  146.      * @return string 
  147.      */
  148.     public function getCatalogueImage()
  149.     {
  150.         return $this->catalogueImage;
  151.     }
  152. }