| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 | 
							- <?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;
 -     }
 - }
 
 
  |