1
0
mirror of synced 2024-12-15 23:56:02 +03:00
doctrine2/tests/Doctrine/Tests/Models/Navigation/NavPhotos.php

48 lines
879 B
PHP
Raw Normal View History

<?php
namespace Doctrine\Tests\Models\Navigation;
/**
* @Entity
* @Table(name="navigation_photos")
*/
class NavPhotos
{
/**
* @Id
* @column(type="integer")
* @generatedValue
*/
private $id;
/**
* @ManyToOne(targetEntity="NavPointOfInterest")
* @JoinColumns({
* @JoinColumn(name="poi_long", referencedColumnName="nav_long"),
* @JoinColumn(name="poi_lat", referencedColumnName="nav_lat")
* })
*/
private $poi;
/**
* @column(type="string", name="file_name")
*/
private $file;
function __construct($poi, $file) {
$this->poi = $poi;
$this->file = $file;
}
public function getId() {
return $this->id;
}
public function getPointOfInterest() {
return $this->poi;
}
public function getFile() {
return $this->file;
}
}