From 8f5dc4638ef7378db6572aae23b524b8b5a6a1fe Mon Sep 17 00:00:00 2001 From: mikl <> Date: Thu, 16 Oct 2008 09:03:39 +0000 Subject: Ticket #891 (changed to non-static method) --- demos/quickstart/protected/pages/Database/ActiveRecord.page | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'demos/quickstart/protected/pages/Database') 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, TABLE = "`database1`.
Note: -Since version 3.1.3 you can also use a static method to define the table name. +Since version 3.1.3 you can also use a method table() to define the table name. This allows you to dynamically specify which table should be used by the ActiveRecord. class TeamRecord extends TActiveRecord { - public static function table() { + public function table() { return 'Teams'; } } -- cgit v1.2.3