summaryrefslogtreecommitdiff
path: root/demos/northwind-db/protected/database/OrderDetail.php
blob: 1732b0d984c24de6a0f6a527a03294933da96d67 (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
<?php

class OrderDetail extends TActiveRecord
{
	const TABLE='Order Details';

	public $OrderID;
	public $ProductID;
	public $UnitPrice;
	public $Quantity;
	public $Discount;

	public $Product;
	public $Order;

	public static $RELATIONS = array
	(
		'Product' => array(self::BELONGS_TO, 'Product'),
		'Order' => array(self::BELONGS_TO, 'Order'),
	);

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