Azathoth42

Doctrine Entity

Jun 30th, 2015
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.44 KB | None | 0 0
  1. <?php
  2. #parse("PHP File Header.php")
  3.  
  4. #if (${Namespace})
  5. namespace ${Namespace};
  6. #end
  7.  
  8. use \Doctrine\ORM\Mapping as ORM;
  9. use \Doctrine\Common\Collections\ArrayCollection;
  10. use \Kdyby\Doctrine\Entities\BaseEntity;
  11.  
  12. /**
  13.  * #parse("Class Doc Author.php")
  14.  
  15.  * @ORM\Entity
  16.  */
  17. class ${NAME} extends BaseEntity {
  18.  
  19.     /**
  20.      * @ORM\Id
  21.      * @ORM\Column(type="bigint")
  22.      * @ORM\GeneratedValue
  23.      */
  24.     protected ${DS}id;
  25.  
  26. }
Advertisement
Add Comment
Please, Sign In to add comment