diff --git a/core/model/DataObject.php b/core/model/DataObject.php index 660877857..f345821f9 100644 --- a/core/model/DataObject.php +++ b/core/model/DataObject.php @@ -123,6 +123,18 @@ class DataObject extends ViewableData implements DataObjectInterface, i18nEntity */ protected $components; + /** + * Used by onBeforeDelete() to ensure child classes call parent::onBeforeDelete() + * @var boolean + */ + protected $brokenOnDelete = false; + + /** + * Used by onBeforeWrite() to ensure child classes call parent::onBeforeWrite() + * @var boolean + */ + protected $brokenOnWrite = false; + /** * Should dataobjects be validated before they are written? */ @@ -702,12 +714,6 @@ class DataObject extends ViewableData implements DataObjectInterface, i18nEntity $this->extend('onAfterWrite', $dummy); } - /** - * Used by onBeforeWrite() to ensure child classes call parent::onBeforeWrite() - * @var boolean - */ - protected $brokenOnWrite = false; - /** * Event handler called before deleting from the database. * You can overload this to clean up or otherwise process data before delete this @@ -726,12 +732,6 @@ class DataObject extends ViewableData implements DataObjectInterface, i18nEntity $this->extend('onAfterDelete'); } - /** - * Used by onBeforeDelete() to ensure child classes call parent::onBeforeDelete() - * @var boolean - */ - protected $brokenOnDelete = false; - /** * Load the default values in from the self::$defaults array. * Will traverse the defaults of the current class and all its parent classes.