mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-01 03:26:36 +08:00
Merge branch 'master' into fix-type-boolean-mysql
This commit is contained in:
@ -135,6 +135,10 @@ trait ActiveQueryTrait
|
||||
*/
|
||||
public function findWith($with, &$models)
|
||||
{
|
||||
if (empty($models)) {
|
||||
return;
|
||||
}
|
||||
|
||||
$primaryModel = reset($models);
|
||||
if (!$primaryModel instanceof ActiveRecordInterface) {
|
||||
/* @var $modelClass ActiveRecordInterface */
|
||||
|
||||
Reference in New Issue
Block a user