No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

67 líneas
1.4KB

  1. <?php
  2. namespace Lc\CaracoleBundle\Model\User;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Lc\CaracoleBundle\Model\PointSale\PointSaleInterface;
  5. use Lc\SovBundle\Model\User\UserInterface;
  6. /**
  7. * @ORM\MappedSuperclass
  8. */
  9. abstract class UserPointSaleModel
  10. {
  11. /**
  12. * @ORM\ManyToOne(targetEntity="Lc\CaracoleBundle\Model\User\UserInterface", inversedBy="userPointSales")
  13. * @ORM\JoinColumn(nullable=false)
  14. */
  15. protected $user;
  16. /**
  17. * @ORM\ManyToOne(targetEntity="Lc\CaracoleBundle\Model\PointSale\PointSaleInterface", inversedBy="userPointSales")
  18. * @ORM\JoinColumn(nullable=false)
  19. */
  20. protected $pointSale;
  21. /**
  22. * @ORM\Column(type="text", nullable=true)
  23. */
  24. protected $comment;
  25. public function getUser(): ?UserInterface
  26. {
  27. return $this->user;
  28. }
  29. public function setUser(?UserInterface $user): self
  30. {
  31. $this->user = $user;
  32. return $this;
  33. }
  34. public function getPointSale(): ?PointSaleInterface
  35. {
  36. return $this->pointSale;
  37. }
  38. public function setPointSale(?PointSaleInterface $pointSale): self
  39. {
  40. $this->pointSale = $pointSale;
  41. return $this;
  42. }
  43. public function getComment(): ?string
  44. {
  45. return $this->comment;
  46. }
  47. public function setComment(?string $comment): self
  48. {
  49. $this->comment = $comment;
  50. return $this;
  51. }
  52. }