summaryrefslogtreecommitdiff
path: root/demos/quickstart
diff options
context:
space:
mode:
authorwei <>2007-01-11 05:28:02 +0000
committerwei <>2007-01-11 05:28:02 +0000
commit513d38062e8d33cf8be7ae3480323fa9750758e9 (patch)
tree249a37a123d0e4547f177f2578d94c20bceaf577 /demos/quickstart
parentfaa3edf8d314143967d206aa3815ae4f3a8c14dc (diff)
update comment for quoting tablename in active record.
Diffstat (limited to 'demos/quickstart')
-rw-r--r--demos/quickstart/protected/pages/Database/ActiveRecord.page5
1 files changed, 5 insertions, 0 deletions
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.
</p>
+<div class="note"><b class="note">Note:</b>
+You may need to quote (specific to your database) the value of the <tt>$_tablename</tt>.
+E.g. MySQL uses back-ticks, <tt>$_tablename = "`database1`.`table1`"</tt>
+</div>
+
<div class="tip"><b class="note">Tip:</b>
Since <tt>TActiveRecord</tt> extends <tt>TComponent</tt>, setter and
getter methods can be defined to allow control over how variables