diff options
author | wei <> | 2007-02-27 23:48:49 +0000 |
---|---|---|
committer | wei <> | 2007-02-27 23:48:49 +0000 |
commit | 7a9626af3bef5c712901597065745d9572c3f097 (patch) | |
tree | b63b6c5ef530004ac40d57c2b58ddca773bea05d /demos/quickstart/protected/pages/Database | |
parent | 4c86659bc90d9134b0f901572c5417aa7d9cec18 (diff) |
BC: Deprecate TActiveRecord::getRecordFinder() in favour of TActiveRecord::finder().
Diffstat (limited to 'demos/quickstart/protected/pages/Database')
-rw-r--r-- | demos/quickstart/protected/pages/Database/ActiveRecord.page | 6 | ||||
-rw-r--r-- | demos/quickstart/protected/pages/Database/SqlMap.page | 4 |
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> |