blob: 47f77351b87c330c85a0910684104968e92b29a0 (
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);
}
}
?>
|