diff options
author | wei <> | 2007-01-03 11:31:18 +0000 |
---|---|---|
committer | wei <> | 2007-01-03 11:31:18 +0000 |
commit | 7ea61ba9701a04bc593d7c5960c5135ce39805a8 (patch) | |
tree | 55cc29fdd679440bfb7a86d12aecca684dc6dbb0 /demos | |
parent | 46484d91f49721a10b76e2c25071ad594f0b32d4 (diff) |
quote the criteria string in ActiveRecord.
Diffstat (limited to 'demos')
-rw-r--r-- | demos/quickstart/protected/pages/Database/ActiveRecord.page | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/demos/quickstart/protected/pages/Database/ActiveRecord.page b/demos/quickstart/protected/pages/Database/ActiveRecord.page index 017b8d45..e3da53c0 100644 --- a/demos/quickstart/protected/pages/Database/ActiveRecord.page +++ b/demos/quickstart/protected/pages/Database/ActiveRecord.page @@ -74,7 +74,7 @@ class UserRecord extends TActiveRecord public $username; //the column named "username" in the "users" table public $email; - private static $_tablename='users'; //table name + public static $_tablename='users'; //table name /** * @return TActiveRecord active record finder instance @@ -88,7 +88,7 @@ class UserRecord extends TActiveRecord </p> <p>Each property of the <tt>UserRecord</tt> class must correspond to a column with the same name in the "users" table. The static class variable - <tt>$_tablename</tt> is optional when the class name is the same as + <tt>$_tablename</tt> (must be public) is optional when the class name is the same as the table name in the database, otherwise <tt>$_tablename</tt> must specify the table name that corresponds to your Active Record class. </p> |