Answer the question
In order to leave comments, you need to log in
Is it possible to display data from an unrelated table?
Is it possible to display data from an unrelated table together? There are two modules, their tables are not related, but I need to output data from another model through one model. How can I do that ?
Answer the question
In order to leave comments, you need to log in
array(
'name' => 'street',
'value' => function ($data) {
$output = "";
if ($data->street instanceof Street) {
$output .= $data->street->Street;
if ($data->street->town instanceof Town) {
$output .= "," . $data->street->town->Town;
}
}
return $output;
},
),
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question