Open
Description
Description
According to documentation we can skip some properties from being assigned with the help of 'fields' option.
But Marshaller:merge() is calling validate for all data posted, including attributes that are supposed to be excluded.
If this excluded attributes hold the wrong data (for some reason), than validation will result in error and data will not be saved into database.
Instead, we should validate only required (not excluded) fields, or, alternatively, suppress validation errors for excluded fields.
CakePHP Version
5.0
PHP Version
8.1