Hi.
Can you please help me obout this.
I use a source table to put info in a select combo, but in my destination table I do not want to store the id of the record of the source table, I want to store the value.
Source
Example ID: 1 - Value: Excelent
Destinaton
Value: Excelent (the way is below stores the 1)
table
$this->belongsTo(‘Escalavaloraciones’, [
‘foreignKey’ => ‘’,
‘joinType’ => ‘INNER’,
]);
Controller
$escalaValoraciones = $this->Selecciones->Escalavaloraciones->find(‘list’);
view
echo $this->Form->control(‘presentacion_personal_entrevista’, [‘options’ => $escalaValoraciones]);