Describes the methods that any class representing a data storage should comply with.
invalid( string|array|null $field null , mixed|null $value null , boolean $overwrite false )
Sets a field as invalid and not patchable into the entity.
This is useful for batch operations when one needs to get the original value for an error message after patching. This value could not be patched into the entity and is simply copied into the _invalid property for debugging purposes or to be able to log it away.
$field
optional null $value
optional null $overwrite
optional false
© 2005–2017 The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
https://api.cakephp.org/3.4/class-Cake.Datasource.InvalidPropertyInterface.html