diff options
-rw-r--r-- | UPGRADE | 13 | ||||
-rw-r--r-- | framework/Data/ActiveRecord/TActiveRecord.php | 5 |
2 files changed, 7 insertions, 11 deletions
@@ -4,10 +4,6 @@ !!!IMPORTANT!!!
-After installing the framework, remember to delete everything under
-your PRADO application's assets and runtime directories.
-
-
The following upgrading instructions are cumulative. That is,
if you want to upgrade from version A to version C and there is
version B between A and C, you need to following the instructions
@@ -15,8 +11,13 @@ for both A and B. Upgrading from v3.1a
---------------------
-- TActiveRecord::getRecordFinder() is deprecated in favour of TActiveRecord::finder().
-
+- The signature of TActiveRecord::finder() is changed. All TActiveRecord-descendant
+ classes that override this method will be affected. Please use the
+ following code to override the method:
+ public static function finder($className=__CLASS__)
+ {
+ return parent::finder($className);
+ }
Upgrading from v3.0.x
---------------------
diff --git a/framework/Data/ActiveRecord/TActiveRecord.php b/framework/Data/ActiveRecord/TActiveRecord.php index 0eb6d51d..4e06f645 100644 --- a/framework/Data/ActiveRecord/TActiveRecord.php +++ b/framework/Data/ActiveRecord/TActiveRecord.php @@ -160,11 +160,6 @@ abstract class TActiveRecord extends TComponent return $finders[$className];
}
- public static function getRecordFinder($className)
- {
- throw new TActiveRecordException('Deprecated method, use TActiveRecord::finder()');
- }
-
/**
* Gets the record manager for this object, the default is to call
* TActiveRecordManager::getInstance().
|