|
@@ 81-83 (lines=3) @@
|
| 78 |
|
$inputs[$col] = new ActiveForm($this->model->{$colPath[1]}, $colPath[2]); |
| 79 |
|
} else { |
| 80 |
|
$relOptions = $modelName::getRelation($colPath[1]); |
| 81 |
|
if (!isset($this->model->_params[$modelName::index()])) { |
| 82 |
|
$this->model->_params[$modelName::index()] = 0; |
| 83 |
|
} |
| 84 |
|
$relOptions['model']::fixPrefix($relOptions['col']); |
| 85 |
|
$inputs[$col] = new ActiveForm(new $relOptions['model'](), $colPath[2]); |
| 86 |
|
} |
|
@@ 176-178 (lines=3) @@
|
| 173 |
|
$colPath = explode(':', $col); |
| 174 |
|
if (!$this->model->{$colPath[1]}) { |
| 175 |
|
$relOptions = $modelName::getRelation($colPath[1]); |
| 176 |
|
if (!isset($this->model->_params[$modelName::index()])) { |
| 177 |
|
$this->model->_params[$modelName::index()] = 0; |
| 178 |
|
} |
| 179 |
|
$relOptions['model']::fixPrefix($relOptions['col']); |
| 180 |
|
$form->model->{$relOptions['col']} = $this->model->_params[$modelName::index()]; |
| 181 |
|
} |