summaryrefslogtreecommitdiff
path: root/demos/northwind-db/protected/database/Order.php
blob: fa865e6160be1da539b23591640ea1c8f3378012 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
/**
 * Auto generated by prado-cli.php on 2007-05-01 05:29:47.
 */
class Order extends TActiveRecord
{
	const TABLE='Orders';

	public $OrderID;
	public $CustomerID;
	public $EmployeeID;
	public $OrderDate;
	public $RequiredDate;
	public $ShippedDate;
	public $ShipVia;
	public $Freight;
	public $ShipName;
	public $ShipAddress;
	public $ShipCity;
	public $ShipRegion;
	public $ShipPostalCode;
	public $ShipCountry;

	public $OrderDetails=array();
	public $Customer;
	public $Shipper;
	public $Employee;

	protected static $RELATIONS = array
	(
		'OrderDetails' => array(self::HAS_MANY, 'OrderDetail'),
		'Customer' => array(self::BELONGS_TO, 'Customer'),
		'Shipper' => array(self::BELONGS_TO, 'Shipper'),
		'Employee' => array(self::BELONGS_TO, 'Employee'),
	);

	public static function finder($className=__CLASS__)
	{
		return parent::finder($className);
	}
}
?>