Errors when patching an entity

I’m usin’ cakephp 3.6 & tryin’ to edit some entity fields before save it, so when I use pathchEntity to edit those fields:

$booking->set([
    'status'  => 1,
    'deposit' => $this->request->getData('deposit')
]);

I got errors of entity validation before save it, so how I should do to edit those fields without gettin’ errors;

Thx.

The code you share here is setting variables for the view and nothing to do with validation.

You should share the exact error message to get help.