Guest User

Untitled

a guest
Dec 11th, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. <?php
  2.  
  3. namespace Doctrine\Tests\ORM\Mapping;
  4.  
  5. /**
  6. * @Entity(tableName="cms_users")
  7. * @NamedQueries({
  8. * @NamedQuery(name="all", query="SELECT u FROM __CLASS__ u")
  9. * })
  10. */
  11. class User
  12. {
  13. /**
  14. * @Id @GeneratedValue
  15. * @Column(type="integer")
  16. */
  17. protected $id;
  18.  
  19. /**
  20. * @Column(type="string", length=50, unique=true)
  21. */
  22. protected $name;
  23.  
  24. /**
  25. * @Column(type="string")
  26. */
  27. protected $email;
  28.  
  29. /**
  30. * @ManyToMany(targetEntity="Doctrine\Tests\ORM\Mapping\Group", cascade={"persist", "merge", "remove", "detach", "refresh"})
  31. */
  32. protected $groups;
  33. }
Add Comment
Please, Sign In to add comment