Closed romaninsh closed 7 years ago
Maybe it would be even better to implement this like it's done in UnionModel
.
If GroupModel
has such field, then add condition on that field (expression), if GroupModel
doesn't have such field, but $group_model->master_model does, then add condition on master_model.
If I group model and addCondition then it will be conditioned on the nested model. Thats' wrong, if a wanted that , i would do
So the condition should be on the grouped expression.