summaryrefslogtreecommitdiff
path: root/demos/northwind-db/protected/database/Product.php
diff options
context:
space:
mode:
authorwei <>2007-05-03 01:37:21 +0000
committerwei <>2007-05-03 01:37:21 +0000
commitea9e7eb535b460218b693d4e5fec80297eb3e360 (patch)
tree8dc4f4ac6d29989ba912a6013ffa6590c71e857d /demos/northwind-db/protected/database/Product.php
parent1ae09931b2572d9c3067c99f841a60cb3330b3f3 (diff)
Add northwind db demo.
Diffstat (limited to 'demos/northwind-db/protected/database/Product.php')
-rw-r--r--demos/northwind-db/protected/database/Product.php36
1 files changed, 36 insertions, 0 deletions
diff --git a/demos/northwind-db/protected/database/Product.php b/demos/northwind-db/protected/database/Product.php
new file mode 100644
index 00000000..75d01c02
--- /dev/null
+++ b/demos/northwind-db/protected/database/Product.php
@@ -0,0 +1,36 @@
+<?php
+/**
+ * Auto generated by prado-cli.php on 2007-05-01 05:31:51.
+ */
+class Product extends TActiveRecord
+{
+ const TABLE='Products';
+
+ public $ProductID;
+ public $ProductName;
+ public $SupplierID;
+ public $CategoryID;
+ public $QuantityPerUnit;
+ public $UnitPrice;
+ public $UnitsInStock;
+ public $UnitsOnOrder;
+ public $ReorderLevel;
+ public $Discontinued;
+
+ public $Supplier;
+ public $Category;
+ public $OrderDetails=array();
+
+ protected static $RELATIONS = array
+ (
+ 'Supplier' => array(self::BELONGS_TO, 'Supplier'),
+ 'Category' => array(self::BELONGS_TO, 'Category'),
+ 'OrderDetails' => array(self::HAS_MANY, 'OrderDetail'),
+ );
+
+ public static function finder($className=__CLASS__)
+ {
+ return parent::finder($className);
+ }
+}
+?> \ No newline at end of file