What is meaning of the dirty array in response object ? Is the effect of not save the data into database.
The following array : -
object(App\Model\Entity\Lead) {
'company_name' => 'ABC',
'contact_name_first' => 'Nish',
'[new]' => true,
'[accessible]' => [
'company_name' => true,
'status' => true,
'contact_name_first' => true,
'contact_name_last' => true,
'phone_no' => true,
'email' => true,
'city' => true,
'state' => true,
'zip_code' => true,
'description_of_work' => true,
'client_id' => true,
'created' => true,
'modified' => true,
'created_by' => true,
'modified_by' => true,
'client' => true
],
'[dirty]' => [
'company_name' => true,
'contact_name_first' => true
],
'[original]' => [],
'[virtual]' => [],
'[hasErrors]' => true,
'[errors]' => [
'created_by' => [
'_required' => 'This field is required'
]
],
'[invalid]' => [],
'[repository]' => 'Leads'
}