mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
wakeless: #1419 Removed e_notice level error on DataObject::write()
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@46722 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
25a0f96e05
commit
fcd42544ab
@ -475,6 +475,7 @@ class DataObject extends Controller implements DataObjectInterface {
|
||||
public function write($showDebug = false, $forceInsert = false, $forceWrite = false) {
|
||||
$firstWrite = false;
|
||||
$this->brokenOnWrite = true;
|
||||
$isNewRecord = false;
|
||||
$this->onBeforeWrite();
|
||||
if($this->brokenOnWrite) {
|
||||
user_error("$this->class has a broken onBeforeWrite() function. Make sure that you call parent::onBeforeWrite().", E_USER_ERROR);
|
||||
|
Loading…
Reference in New Issue
Block a user