From 513d38062e8d33cf8be7ae3480323fa9750758e9 Mon Sep 17 00:00:00 2001 From: wei <> Date: Thu, 11 Jan 2007 05:28:02 +0000 Subject: update comment for quoting tablename in active record. --- demos/quickstart/protected/pages/Database/ActiveRecord.page | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'demos') diff --git a/demos/quickstart/protected/pages/Database/ActiveRecord.page b/demos/quickstart/protected/pages/Database/ActiveRecord.page index a1337ba3..4dd70608 100644 --- a/demos/quickstart/protected/pages/Database/ActiveRecord.page +++ b/demos/quickstart/protected/pages/Database/ActiveRecord.page @@ -93,6 +93,11 @@ class UserRecord extends TActiveRecord specify the table name that corresponds to your Active Record class.

+
Note: +You may need to quote (specific to your database) the value of the $_tablename. +E.g. MySQL uses back-ticks, $_tablename = "`database1`.`table1`" +
+
Tip: Since TActiveRecord extends TComponent, setter and getter methods can be defined to allow control over how variables -- cgit v1.2.3