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:
Sam Minnee 2007-12-12 22:46:13 +00:00
parent 25a0f96e05
commit fcd42544ab

View File

@ -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);