NavPhotos.php 879B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. namespace Doctrine\Tests\Models\Navigation;
  3. /**
  4. * @Entity
  5. * @Table(name="navigation_photos")
  6. */
  7. class NavPhotos
  8. {
  9. /**
  10. * @Id
  11. * @column(type="integer")
  12. * @generatedValue
  13. */
  14. private $id;
  15. /**
  16. * @ManyToOne(targetEntity="NavPointOfInterest")
  17. * @JoinColumns({
  18. * @JoinColumn(name="poi_long", referencedColumnName="nav_long"),
  19. * @JoinColumn(name="poi_lat", referencedColumnName="nav_lat")
  20. * })
  21. */
  22. private $poi;
  23. /**
  24. * @column(type="string", name="file_name")
  25. */
  26. private $file;
  27. function __construct($poi, $file) {
  28. $this->poi = $poi;
  29. $this->file = $file;
  30. }
  31. public function getId() {
  32. return $this->id;
  33. }
  34. public function getPointOfInterest() {
  35. return $this->poi;
  36. }
  37. public function getFile() {
  38. return $this->file;
  39. }
  40. }