I would like to update an entity with some “calulated” data like so:
$data = [
‘key’ => 100,
$entity = $this->Table->patchEntity($entity, $data);
The form helper should reflect the updated data after post. This works perfectly after a regular http post, but not with ajax post and I have no idea why.
$this->request->data[‘key’] = 100 works, but this is a bad habbit and deprecated in 3.6 at all.