summaryrefslogtreecommitdiff
path: root/demos/quickstart
diff options
context:
space:
mode:
authormikl <>2008-10-16 09:03:39 +0000
committermikl <>2008-10-16 09:03:39 +0000
commit8f5dc4638ef7378db6572aae23b524b8b5a6a1fe (patch)
treebaf797ffe0716fa2b6c1bbdcf251055d110dac10 /demos/quickstart
parent104100cccd4e7b30ec84ed055fb78745dd94b5b0 (diff)
Ticket #891 (changed to non-static method)
Diffstat (limited to 'demos/quickstart')
-rw-r--r--demos/quickstart/protected/pages/Database/ActiveRecord.page4
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 d54290ab..bc0df529 100644
--- a/demos/quickstart/protected/pages/Database/ActiveRecord.page
+++ b/demos/quickstart/protected/pages/Database/ActiveRecord.page
@@ -130,12 +130,12 @@ You may specify qualified table names. E.g. for MySQL, <tt>TABLE = "`database1`.
</div>
<div class="note"><b class="note">Note:</b>
-Since version <b>3.1.3</b> you can also use a static method to define the table name.
+Since version <b>3.1.3</b> you can also use a method <tt>table()</tt> to define the table name.
This allows you to dynamically specify which table should be used by the ActiveRecord.
<com:TTextHighlighter Language="php" CssClass="source block-content">
class TeamRecord extends TActiveRecord
{
- public static function table() {
+ public function table() {
return 'Teams';
}
}