/** @inheritdoc */ public function processClearIdentityMapAndCaches($areYouSure = NULL) { if ($areYouSure !== IModel::I_KNOW_WHAT_I_AM_DOING) { throw new LogicException('Do not call this method directly. Use IModel::clearIdentityMapAndCaches().'); } $this->identityMap->destroyAllEntities(); $this->mapper->clearCollectionCache(); }