1
0
mirror of synced 2024-12-13 14:56:01 +03:00
doctrine2/tests/Doctrine/Tests/Models/Routing/RoutingLeg.php

38 lines
718 B
PHP

<?php
namespace Doctrine\Tests\Models\Routing;
/**
* @Entity
*/
class RoutingLeg
{
/**
* @Id
* @generatedValue(strategy="AUTO")
* @column(type="integer")
*/
public $id;
/**
* @ManyToOne(targetEntity="Doctrine\Tests\Models\Routing\RoutingLocation")
* @JoinColumn(name="from_id", referencedColumnName="id")
*/
public $fromLocation;
/**
* @ManyToOne(targetEntity="Doctrine\Tests\Models\Routing\RoutingLocation")
* @JoinColumn(name="to_id", referencedColumnName="id")
*/
public $toLocation;
/**
* @Column(type="datetime")
*/
public $departureDate;
/**
* @Column(type="datetime")
*/
public $arrivalDate;
}