From 8a674fb83fa2dd80bc653745e03b24450a9cf68d Mon Sep 17 00:00:00 2001 From: xue <> Date: Tue, 6 Mar 2007 20:40:51 +0000 Subject: changed the way to specify active record table. --- tests/simple_unit/ActiveRecord/records/DepSections.php | 2 +- tests/simple_unit/ActiveRecord/records/DepartmentRecord.php | 2 +- tests/simple_unit/ActiveRecord/records/SimpleUser.php | 2 +- tests/simple_unit/ActiveRecord/records/SqliteUsers.php | 2 +- tests/simple_unit/ActiveRecord/records/UserRecord.php | 2 +- tests/simple_unit/SqlMap/ActiveRecordSqlMapTest.php | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) (limited to 'tests') diff --git a/tests/simple_unit/ActiveRecord/records/DepSections.php b/tests/simple_unit/ActiveRecord/records/DepSections.php index c172245c..7b213c33 100644 --- a/tests/simple_unit/ActiveRecord/records/DepSections.php +++ b/tests/simple_unit/ActiveRecord/records/DepSections.php @@ -5,7 +5,7 @@ class DepSections extends TActiveRecord public $section_id; public $order; - public static $_tablename='department_sections'; + const TABLE='department_sections'; public static function finder($className=__CLASS__) { diff --git a/tests/simple_unit/ActiveRecord/records/DepartmentRecord.php b/tests/simple_unit/ActiveRecord/records/DepartmentRecord.php index be0f5fd1..61307826 100644 --- a/tests/simple_unit/ActiveRecord/records/DepartmentRecord.php +++ b/tests/simple_unit/ActiveRecord/records/DepartmentRecord.php @@ -7,7 +7,7 @@ class DepartmentRecord extends TActiveRecord public $active; public $order; - public static $_tablename = 'departments'; + const TABLE = 'departments'; public static function finder($className=__CLASS__) { diff --git a/tests/simple_unit/ActiveRecord/records/SimpleUser.php b/tests/simple_unit/ActiveRecord/records/SimpleUser.php index 3112e203..4ff0b982 100644 --- a/tests/simple_unit/ActiveRecord/records/SimpleUser.php +++ b/tests/simple_unit/ActiveRecord/records/SimpleUser.php @@ -3,7 +3,7 @@ class SimpleUser extends TActiveRecord { public $username; - public static $_tablename='simple_users'; + const TABLE='simple_users'; public static function finder($className=__CLASS__) { diff --git a/tests/simple_unit/ActiveRecord/records/SqliteUsers.php b/tests/simple_unit/ActiveRecord/records/SqliteUsers.php index 19940bc0..ffa47c72 100644 --- a/tests/simple_unit/ActiveRecord/records/SqliteUsers.php +++ b/tests/simple_unit/ActiveRecord/records/SqliteUsers.php @@ -5,7 +5,7 @@ class SqliteUsers extends TActiveRecord public $password; public $email; - public static $_tablename='users'; + const TABLE='users'; public static function finder($className=__CLASS__) { diff --git a/tests/simple_unit/ActiveRecord/records/UserRecord.php b/tests/simple_unit/ActiveRecord/records/UserRecord.php index 6ef0c637..c3cb78b2 100644 --- a/tests/simple_unit/ActiveRecord/records/UserRecord.php +++ b/tests/simple_unit/ActiveRecord/records/UserRecord.php @@ -17,7 +17,7 @@ class UserRecord extends TActiveRecord private $_level=-1; - public static $_tablename='users'; + const TABLE='users'; public function getLevel() { diff --git a/tests/simple_unit/SqlMap/ActiveRecordSqlMapTest.php b/tests/simple_unit/SqlMap/ActiveRecordSqlMapTest.php index 1f018a02..63d62534 100644 --- a/tests/simple_unit/SqlMap/ActiveRecordSqlMapTest.php +++ b/tests/simple_unit/SqlMap/ActiveRecordSqlMapTest.php @@ -14,7 +14,7 @@ class ActiveAccount extends TActiveRecord public $Account_Banner_Option; public $Account_Cart_Option; - private static $_tablename='Accounts'; + const TABLE='Accounts'; public static function finder($className=__CLASS__) { -- cgit v1.2.3