let’s suppose the newly inserted field will have an ID of 1101.
Is there a way to use this value in another field ? for example :
$crud->callbackBeforeInsert (
function ($cbData) {
$cbData->data['desc'] = 'description_' . $cbData->data['id'];
...
return $cbData;
}
);
I want to get the field description : description_1101
By the way, this does not work…