summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/pages/Database
diff options
context:
space:
mode:
Diffstat (limited to 'demos/quickstart/protected/pages/Database')
-rw-r--r--demos/quickstart/protected/pages/Database/ActiveRecord.page6
-rw-r--r--demos/quickstart/protected/pages/Database/SqlMap.page4
2 files changed, 5 insertions, 5 deletions
diff --git a/demos/quickstart/protected/pages/Database/ActiveRecord.page b/demos/quickstart/protected/pages/Database/ActiveRecord.page
index 2562f674..041a1126 100644
--- a/demos/quickstart/protected/pages/Database/ActiveRecord.page
+++ b/demos/quickstart/protected/pages/Database/ActiveRecord.page
@@ -81,9 +81,9 @@ class UserRecord extends TActiveRecord
/**
* @return TActiveRecord active record finder instance
*/
- public static function finder()
+ public static function finder($className=__CLASS__)
{
- return self::getRecordFinder('UserRecord');
+ return parent::finder($className);
}
}
</com:TTextHighlighter>
@@ -129,7 +129,7 @@ will raise an exception.
<p id="690486" class="block-content">
The static method <tt>finder()</tt> returns an <tt>UserRecord</tt> instance
that can be used to load records from the database. The loading of records
- using the finer methods is discuss a little later. The <tt>TActiveRecord::getRecordFinder()</tt>
+ using the finer methods is discuss a little later. The <tt>TActiveRecord::finder()</tt>
static method takes the name of the current Active Record class as parameter.
</p>
diff --git a/demos/quickstart/protected/pages/Database/SqlMap.page b/demos/quickstart/protected/pages/Database/SqlMap.page
index ce9e979e..c8ced852 100644
--- a/demos/quickstart/protected/pages/Database/SqlMap.page
+++ b/demos/quickstart/protected/pages/Database/SqlMap.page
@@ -221,9 +221,9 @@ class UserRecord extends TActiveRecord
/**
* @return TActiveRecord active record finder instance
*/
- public static function finder()
+ public static function finder($className=__CLASS__)
{
- return self::getRecordFinder('UserRecord');
+ return parent::finder($className);
}
}
</com:TTextHighlighter>