Trying to use multiple fields in my find method -
$users = $this->AdressesUsers->users->find(\'list\', [
\'keyField\' => \'id\',
I would never mess with the entity, keep it without logic and as simple as possible.
A better approach here is to use what you already tried:
'valueField' => function ($e) {
return $e->first_name . ' ' . $e->last_name . ' ' . $e->more;
}
etc Just debug() the entity here and you will see that it contains the whole data set and you can put it together however you like.