mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-22 01:30:23 +08:00
Fixes #1579: throw exception when the given AR relation name does not match in a case sensitive manner.
Renamed `ActiveRecord::getPopulatedRelations()` to `getRelatedRecords()`
This commit is contained in:
@@ -29,7 +29,7 @@ use yii\helpers\StringHelper;
|
||||
* @property mixed $oldPrimaryKey The old primary key value. An array (column name => column value) is
|
||||
* returned if the primary key is composite. A string is returned otherwise (null will be returned if the key
|
||||
* value is null). This property is read-only.
|
||||
* @property array $populatedRelations An array of relation data indexed by relation names. This property is
|
||||
* @property array $relatedRecords An array of the populated related records indexed by relation names. This property is
|
||||
* read-only.
|
||||
* @property mixed $primaryKey The primary key value. An array (column name => column value) is returned if
|
||||
* the primary key is composite. A string is returned otherwise (null will be returned if the key value is null).
|
||||
@@ -668,4 +668,4 @@ abstract class ActiveRecord extends BaseActiveRecord
|
||||
$transactions = $this->transactions();
|
||||
return isset($transactions[$scenario]) && ($transactions[$scenario] & $operation);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user