--- /dev/null
+<?php
+
+namespace Doctrine\Tests\Models\Navigation;
+
+/**
+ * @Entity
+ * @Table(name="navigation_tours")
+ */
+class NavTour
+{
+ /**
+ * @Id
+ * @Column(type="integer")
+ * @generatedValue
+ */
+ private $id;
+
+ /**
+ * @column(type="string")
+ */
+ private $name;
+
+ /**
+ * @ManyToMany(targetEntity="NavPointOfInterest")
+ * @JoinTable(name="navigation_tour_pois",
+ * joinColumns={@JoinColumn(name="tour_id", referencedColumnName="id")},
+ * inverseJoinColumns={
+ * @JoinColumn(name="poi_long", referencedColumnName="nav_long"),
+ * @JoinColumn(name="poi_lat", referencedColumnName="nav_lat")
+ * }
+ * )
+ *
+ */
+ private $pois;
+
+ public function __construct($name)
+ {
+ $this->name = $name;
+ $this->pois = new \Doctrine\Common\Collections\ArrayCollection;
+ }
+
+ public function addPointOfInterest(NavPointOfInterest $poi)
+ {
+ $this->pois[] = $poi;
+ }
+
+ public function getPointOfInterests()
+ {
+ return $this->pois;
+ }
+
+ public function getName()
+ {
+ return $this->name;
+ }
+
+ public function getId()
+ {
+ return $this->id;
+ }
+}
\ No newline at end of file