And I have a view where two times I use CGridView. Thing is that I have both tables similar. They have totally identical data.
I think that the issue is in my model finder instance. SellerVerificationRequest::model()->suspended() and this SellerVerificationRequest::model()->new() - returns same object… Is there any ideas how to solve this?
Other idea is that this happens because of lazy initialization. As actual fetch executes after both CActiveDataProvider are set up.
the problem is because youre are using pipeline scope functions not properly. You have to create separate CDbCriteria objects for each dataprovider and call applyScopes to apply scope criteria to those objects. then everything should work fine.
I’ve played a little with different combination and it seems that actually issue is the Criteria which is merged to one from two scopes as I have this in my logs:
SELECT * FROM seller_verification_requestt WHERE (status=1) AND (status=4) ORDER BY requested_on DESC LIMIT 10