walerus
на форуме, кто более 3х лет)
$complectations = []; //массив всех комплектаций
$parametrOne = $_POST['ParamOne'];
$parametrTwo = $_POST['ParamTwo'];
$modelOne = ComplectOption::model()->findAll('complectation_id=:complectation_id', [':complectation_id'=>$parametrOne]);
$modelTwo = ComplectOption::model()->findAll('complectation_id=:complectation_id', [':complectation_id'=>$parametrTwo]);
foreach($modelOne as $key=>$item1){
$item2 = $modelTwo[$key];
if($item1->pole == 'Б') {$item1->pole = '+';} else {$item1->pole;}
if($item2->pole == 'Б') {$item2->pole = '+';} else {$item2->pole;}
array_push($complectations, [$item1->complectation_id, $item1->title_option, $item1->pole, $item2->pole]);
}