Skip to content

Conversation

@phantom-d
Copy link
Contributor

No description provided.

@cebe
Copy link
Member

cebe commented Aug 11, 2015

can you show some code to reproduce this error?

@phantom-d
Copy link
Contributor Author

$jobs = Joblist::find()
    ->where(['status' => Joblist::STATUS_WAIT])
    ->orWhere(['status' => Joblist::STATUS_WORK])
    ->with('threads')
    ->all();

Joblist and threads are empty

@cebe cebe added this to the 2.0.5 milestone Aug 11, 2015
@cebe cebe self-assigned this Aug 11, 2015
cebe added a commit that referenced this pull request Mar 1, 2016
Fix error 'Invalid argument supplied for foreach()' for method all() in ActiveQuery
@cebe cebe merged commit ea17a88 into yiisoft:master Mar 1, 2016
@cebe
Copy link
Member

cebe commented Mar 1, 2016

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants