mirror of
https://github.com/codeigniter4/CodeIgniter4.git
synced 2025-02-20 11:44:28 +08:00
Remove onSave check in Model as it is no longer needed now that we have Model Events.
This commit is contained in:
parent
fb16a039ad
commit
ce0a7edfda
@ -599,15 +599,6 @@ class Model
|
||||
$response = $this->insert($data);
|
||||
}
|
||||
|
||||
// If it was an Entity class, check it for an onSave method.
|
||||
if (is_object($saveData) && ! $saveData instanceof \stdClass)
|
||||
{
|
||||
if (method_exists($saveData, 'onSave'))
|
||||
{
|
||||
$saveData->onSave();
|
||||
}
|
||||
}
|
||||
|
||||
return $response;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user