Skip to content

Commit

Permalink
Merge pull request #16277 from noname007/patch-1
Browse files Browse the repository at this point in the history
fix bug: when use ActiveQuery subquery
  • Loading branch information
SilverFire committed May 14, 2018
2 parents 282152e + e47ac0c commit 22f570c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/db/Query.php
Expand Up @@ -748,7 +748,7 @@ public function distinct($value = true)
*/
public function from($tables)
{
if ($tables instanceof Expression) {
if ($tables instanceof ExpressionInterface) {
$tables = [$tables];
}
if (is_string($tables)) {
Expand Down

0 comments on commit 22f570c

Please sign in to comment.