From 54e9feab491bcf8d1a95b486b68605cb4441e603 Mon Sep 17 00:00:00 2001 From: xue <> Date: Sat, 29 Sep 2007 22:07:12 +0000 Subject: Changed RELATIONS declaration. --- demos/northwind-db/protected/database/Category.php | 2 +- demos/northwind-db/protected/database/Customer.php | 2 +- demos/northwind-db/protected/database/Employee.php | 2 +- demos/northwind-db/protected/database/Order.php | 2 +- demos/northwind-db/protected/database/OrderDetail.php | 2 +- demos/northwind-db/protected/database/Product.php | 2 +- demos/northwind-db/protected/database/Region.php | 2 +- demos/northwind-db/protected/database/Shipper.php | 2 +- demos/northwind-db/protected/database/Supplier.php | 2 +- demos/northwind-db/protected/database/Territory.php | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) (limited to 'demos/northwind-db/protected/database') diff --git a/demos/northwind-db/protected/database/Category.php b/demos/northwind-db/protected/database/Category.php index 05fa7ed0..06fc979f 100644 --- a/demos/northwind-db/protected/database/Category.php +++ b/demos/northwind-db/protected/database/Category.php @@ -13,7 +13,7 @@ class Category extends TActiveRecord public $Products=array(); - protected static $RELATIONS=array + public static $RELATIONS=array ( 'Products' => array(self::HAS_MANY, 'Product'), ); diff --git a/demos/northwind-db/protected/database/Customer.php b/demos/northwind-db/protected/database/Customer.php index 356dd02f..810f2a6a 100644 --- a/demos/northwind-db/protected/database/Customer.php +++ b/demos/northwind-db/protected/database/Customer.php @@ -20,7 +20,7 @@ class Customer extends TActiveRecord public $Orders=array(); - protected static $RELATIONS = array + public static $RELATIONS = array ( 'Orders' => array(self::HAS_MANY, 'Order'), ); diff --git a/demos/northwind-db/protected/database/Employee.php b/demos/northwind-db/protected/database/Employee.php index 7a678f57..92de3f24 100644 --- a/demos/northwind-db/protected/database/Employee.php +++ b/demos/northwind-db/protected/database/Employee.php @@ -30,7 +30,7 @@ class Employee extends TActiveRecord public $Subordinates=array(); public $Superior; - protected static $RELATIONS = array + public static $RELATIONS = array ( 'Territories' => array(self::HAS_MANY, 'Territory', 'EmployeeTerritories'), 'Orders' => array(self::HAS_MANY, 'Order'), diff --git a/demos/northwind-db/protected/database/Order.php b/demos/northwind-db/protected/database/Order.php index fa865e61..228fb2b5 100644 --- a/demos/northwind-db/protected/database/Order.php +++ b/demos/northwind-db/protected/database/Order.php @@ -26,7 +26,7 @@ class Order extends TActiveRecord public $Shipper; public $Employee; - protected static $RELATIONS = array + public static $RELATIONS = array ( 'OrderDetails' => array(self::HAS_MANY, 'OrderDetail'), 'Customer' => array(self::BELONGS_TO, 'Customer'), diff --git a/demos/northwind-db/protected/database/OrderDetail.php b/demos/northwind-db/protected/database/OrderDetail.php index 9415e33e..1732b0d9 100644 --- a/demos/northwind-db/protected/database/OrderDetail.php +++ b/demos/northwind-db/protected/database/OrderDetail.php @@ -13,7 +13,7 @@ class OrderDetail extends TActiveRecord public $Product; public $Order; - protected static $RELATIONS = array + public static $RELATIONS = array ( 'Product' => array(self::BELONGS_TO, 'Product'), 'Order' => array(self::BELONGS_TO, 'Order'), diff --git a/demos/northwind-db/protected/database/Product.php b/demos/northwind-db/protected/database/Product.php index 75d01c02..93736ab8 100644 --- a/demos/northwind-db/protected/database/Product.php +++ b/demos/northwind-db/protected/database/Product.php @@ -21,7 +21,7 @@ class Product extends TActiveRecord public $Category; public $OrderDetails=array(); - protected static $RELATIONS = array + public static $RELATIONS = array ( 'Supplier' => array(self::BELONGS_TO, 'Supplier'), 'Category' => array(self::BELONGS_TO, 'Category'), diff --git a/demos/northwind-db/protected/database/Region.php b/demos/northwind-db/protected/database/Region.php index 2afa3501..c6e23485 100644 --- a/demos/northwind-db/protected/database/Region.php +++ b/demos/northwind-db/protected/database/Region.php @@ -11,7 +11,7 @@ class Region extends TActiveRecord public $Territories=array(); - protected static $RELATIONS = array + public static $RELATIONS = array ( 'Territories' => array(self::HAS_MANY, 'Territory') ); diff --git a/demos/northwind-db/protected/database/Shipper.php b/demos/northwind-db/protected/database/Shipper.php index 6ac8a929..a3f0aeb3 100644 --- a/demos/northwind-db/protected/database/Shipper.php +++ b/demos/northwind-db/protected/database/Shipper.php @@ -12,7 +12,7 @@ class Shipper extends TActiveRecord public $Orders = array(); - protected static $RELATIONS = array + public static $RELATIONS = array ( 'Orders' => array(self::HAS_MANY, 'Order'), ); diff --git a/demos/northwind-db/protected/database/Supplier.php b/demos/northwind-db/protected/database/Supplier.php index 537daade..7cabdde5 100644 --- a/demos/northwind-db/protected/database/Supplier.php +++ b/demos/northwind-db/protected/database/Supplier.php @@ -21,7 +21,7 @@ class Supplier extends TActiveRecord public $Products=array(); - protected static $RELATIONS=array + public static $RELATIONS=array ( 'Products' => array(self::HAS_MANY, 'Product') ); diff --git a/demos/northwind-db/protected/database/Territory.php b/demos/northwind-db/protected/database/Territory.php index 4da0ff46..16f33dea 100644 --- a/demos/northwind-db/protected/database/Territory.php +++ b/demos/northwind-db/protected/database/Territory.php @@ -13,7 +13,7 @@ class Territory extends TActiveRecord private $_region; private $_employees; - protected static $RELATIONS = array + public static $RELATIONS = array ( 'Region' => array(self::BELONGS_TO, 'Region'), 'Employees' => array(self::HAS_MANY, 'Employee', 'EmployeeTerritories') -- cgit v1.2.3