Question

I have set relations: 'teamDrivers' => array(self::HAS_MANY, 'TeamDriver', 'team_id') in my Team model

So if I want I can: print_r($this->teamDrivers); in my Team. Just for demonstration.

Now the problem is that this kind of code produces a list of items that have already been removed form database! Via CActiveDataProvider with CDbCriteria those items are not reached.

If I log out from my app and then log back in everything seems to be working.

So is there some cache that takes care of those relations or what is this mystery? And how do I clear that cache?

Was it helpful?

Solution

In my case UserIdentity object had old information and team was got through it. Refreshing was the solutions.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top