Advertisement
Guest User

Untitled

a guest
Dec 4th, 2016
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.67 KB | None | 0 0
  1. use Doctrine\ORM\Mapping as ORM;
  2.  
  3. /**
  4.  * @ORM\Entity
  5.  * @ORM\Table(name="product")
  6.  */
  7. class Page
  8. {
  9.     /**
  10.      * @ORM\Id
  11.      * @ORM\Column(type="integer")
  12.      * @ORM\GeneratedValue(strategy="AUTO")
  13.      */
  14.     protected $id;
  15.  
  16.     /**
  17.      * @ORM\Column(type="string", length=100)
  18.      */
  19.     protected $name;
  20.  
  21.     /**
  22.      * @ORM\Column(type="string", length=100)
  23.      */
  24.     protected $slug;
  25.  
  26.     /**
  27.      * @ORM\Column(type="string", length=200)
  28.      */
  29.     protected $description;
  30.  
  31.     /**
  32.      * @ORM\Column(type="string", length=100)
  33.      */
  34.     protected $title;
  35.  
  36.     /**
  37.      * @ORM\Column(type="text")
  38.      */
  39.     protected $body;
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement