['zip', 'exist', 'targetClass' => ZipKz::className(), 'targetAttribute' => 'zip_new', 'when' => function($model){
return $model->geo == 'KZ';
}],
['zip', 'exists', 'targetClass' => ZipKz::className(), 'targetAttribute' => ['zip_old', 'zip_new'], 'when' => function($model){
return $model->geo == 'KZ';
}],
Find more questions by tags Yii
unlikely, but you can also check a simple example
and in the logs (debug) to check if the query in the database and what - Henderson_Beat commented on June 8th 19 at 16:58