diff options
author | xue <> | 2007-03-06 20:40:51 +0000 |
---|---|---|
committer | xue <> | 2007-03-06 20:40:51 +0000 |
commit | 8a674fb83fa2dd80bc653745e03b24450a9cf68d (patch) | |
tree | 83f72026185075b0ffacf5c1996d3424b0e2f31f /demos/quickstart/protected/pages/Database/Samples | |
parent | 2ab695a553abf26e530f5e97c1ea357233d80998 (diff) |
changed the way to specify active record table.
Diffstat (limited to 'demos/quickstart/protected/pages/Database/Samples')
-rw-r--r-- | demos/quickstart/protected/pages/Database/Samples/Scaffold/Home.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/demos/quickstart/protected/pages/Database/Samples/Scaffold/Home.php b/demos/quickstart/protected/pages/Database/Samples/Scaffold/Home.php index 9bfe3f6d..45d72f1f 100644 --- a/demos/quickstart/protected/pages/Database/Samples/Scaffold/Home.php +++ b/demos/quickstart/protected/pages/Database/Samples/Scaffold/Home.php @@ -5,12 +5,12 @@ Prado::using('System.Data.ActiveRecord.Scaffold.TScaffoldView'); class AddressRecord extends TActiveRecord
{
+ const TABLE='addresses';
+
public $id;
public $username;
public $phone;
- public static $_tablename='addresses';
-
//for demo, we use static db here
//otherwise we should use TActiveRecordConfig in application.xml
private static $_db;
|