Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2014
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. <?php
  2. namespace Lemmsings\App\Domain\Model;
  3.  
  4. use TYPO3\Flow\Annotations as Flow;
  5. use Doctrine\ORM\Mapping as ORM;
  6.  
  7. /**
  8. * @Flow\Entity
  9. */
  10. class Customer {
  11.  
  12. /**
  13. * @var string
  14. * @Flow\Validate(type="NotEmpty")
  15. */
  16. protected $name;
  17.  
  18. /**
  19. * @var string
  20. * @Flow\Validate(type="NotEmpty")
  21. */
  22. protected $shortName;
  23.  
  24. /**
  25. * @var \Doctrine\Common\Collections\ArrayCollection<\Lemmsings\App\Domain\Model\User>
  26. * @ORM\ManyToMany
  27. * @Flow\Lazy
  28. */
  29. protected $users;
  30.  
  31. /**
  32. * @param string $name
  33. */
  34. public function setName($name) {
  35. $this->name = $name;
  36. }
  37.  
  38. /**
  39. * @return string
  40. */
  41. public function getName() {
  42. return $this->name;
  43. }
  44.  
  45. /**
  46. * @param string $shortName
  47. */
  48. public function setShortName($shortName) {
  49. $this->shortName = $shortName;
  50. }
  51.  
  52. /**
  53. * @return string
  54. */
  55. public function getShortName() {
  56. return $this->shortName;
  57. }
  58.  
  59. /**
  60. * @return mixed
  61. */
  62. public function getUsers() {
  63. return $this->users;
  64. }
  65. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement