Subversion-Projekte lars-tiefland.prado

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<?php
2
 
3
class OrderDetail extends TActiveRecord
4
{
5
	const TABLE='Order Details';
6
 
7
	public $OrderID;
8
	public $ProductID;
9
	public $UnitPrice;
10
	public $Quantity;
11
	public $Discount;
12
 
13
	public $Product;
14
	public $Order;
15
 
16
	public static $RELATIONS = array
17
	(
18
		'Product' => array(self::BELONGS_TO, 'Product'),
19
		'Order' => array(self::BELONGS_TO, 'Order'),
20
	);
21
 
22
	public static function finder($className=__CLASS__)
23
	{
24
		return parent::finder($className);
25
	}
26
}
27
?>