Advertisement
Puzo

Doctrine inserting error - File languages.php

Nov 2nd, 2011
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.86 KB | None | 0 0
  1. <?php
  2. namespace models;
  3.  
  4. /**
  5.  * @Entity
  6.  * @Table(name="languages")
  7.  */
  8. class Languages {
  9.     /**
  10.      * @Id
  11.      * @Column(name="id", type="integer", nullable=false)
  12.      * @GeneratedValue(strategy="AUTO")
  13.      */
  14.     protected $id;
  15.    
  16.     /**
  17.      * @Column(type="string", length="255", nullable=false)
  18.      */
  19.     protected $title;
  20.    
  21.     /**
  22.      * @Column(type="string", length="255", nullable=false)
  23.      */
  24.     protected $slug;
  25.    
  26.     /**
  27.      * @Column(type="string", length="255", nullable=false)
  28.      */
  29.     protected $icon;
  30.    
  31.  
  32.    
  33.     /* Setters & Getters */
  34.     public function setIcon($icon){ $this->icon = $icon; }
  35.     public function getIcon(){ return $this->icon; }
  36.    
  37.     public function setSlug($slug){ $this->slug = $slug; }
  38.     public function getSlug(){ return $this->slug; }   
  39.    
  40.     public function setTitle($title){ $this->title = $title; }
  41.     public function getTitle(){ return $this->title; }
  42. }
  43.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement