Rajout de doctrine/orm
[zf2.biz/galerie.git] / vendor / doctrine / orm / tests / Doctrine / Tests / Models / Navigation / NavCountry.php
1 <?php
2
3 namespace Doctrine\Tests\Models\Navigation;
4
5 /**
6  * @Entity
7 * @Table(name="navigation_countries")
8  */
9 class NavCountry
10 {
11     /**
12      * @Id
13      * @Column(type="integer")
14      * @generatedValue
15      */
16     private $id;
17
18     /**
19      * @Column(type="string")
20      */
21     private $name;
22
23     /**
24      * @OneToMany(targetEntity="NavPointOfInterest", mappedBy="country")
25      */
26     private $pois;
27
28     function __construct($name) {
29         $this->name = $name;
30     }
31
32     public function getId() {
33         return $this->id;
34     }
35
36     public function getName() {
37         return $this->name;
38     }
39 }