@@ -19,11 +19,12 @@ |
||
| 19 | 19 | } |
| 20 | 20 | } |
| 21 | 21 | |
| 22 | - if ($obj->hasAttribute($obj->removedAttribute)) |
|
| 23 | - return (new DynamicQuery($obj))->findRemoved()->andFilterWhere($condition); |
|
| 24 | - elseif ($obj->isNestedSet()) |
|
| 25 | - return (new DynamicQuery($obj))->andFilterWhere($condition); |
|
| 26 | - else |
|
| 27 | - return parent::find()->andFilterWhere($condition); |
|
| 22 | + if ($obj->hasAttribute($obj->removedAttribute)) { |
|
| 23 | + return (new DynamicQuery($obj))->findRemoved()->andFilterWhere($condition); |
|
| 24 | + } elseif ($obj->isNestedSet()) { |
|
| 25 | + return (new DynamicQuery($obj))->andFilterWhere($condition); |
|
| 26 | + } else { |
|
| 27 | + return parent::find()->andFilterWhere($condition); |
|
| 28 | + } |
|
| 28 | 29 | } |
| 29 | 30 | } |