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/address-book/protected/pages | |
parent | 4c86659bc90d9134b0f901572c5417aa7d9cec18 (diff) |
BC: Deprecate TActiveRecord::getRecordFinder() in favour of TActiveRecord::finder().
Diffstat (limited to 'demos/address-book/protected/pages')
-rw-r--r-- | demos/address-book/protected/pages/AddressRecord.php | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/demos/address-book/protected/pages/AddressRecord.php b/demos/address-book/protected/pages/AddressRecord.php index e61ed233..b7c93026 100644 --- a/demos/address-book/protected/pages/AddressRecord.php +++ b/demos/address-book/protected/pages/AddressRecord.php @@ -10,31 +10,26 @@ class AddressRecord extends TActiveRecord * @var integer $id
* @soapproperty
*/
- public $id; - -
-
+ public $id;
+
/**
* @var string $username
* @soapproperty
*/
- public $username; - -
-
+ public $username;
+
/**
* @var string $phone
* @soapproperty
*/
- public $phone; + public $phone;
-
/**
* @return AddressRecord
*/
- public static function finder()
+ public static function finder($className==__CLASS__)
{
- return self::getRecordFinder('AddressRecord');
+ return parent::finder($className);
}
}
?>
\ No newline at end of file |