From 32fa73d39fd7307f74bca11de96e6dbb80f386d5 Mon Sep 17 00:00:00 2001 From: Andrew O'Neil Date: Tue, 18 Dec 2007 21:24:23 +0000 Subject: [PATCH] Merged revisions 46832 via svnmerge from svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.2.1 ........ r46832 | sminnee | 2007-12-14 11:59:07 +1300 (Fri, 14 Dec 2007) | 1 line Added augmentDefaultRecords() function, so that DataObjectDecorators can extend requireDefaultRecords. ........ git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@47284 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- core/model/DataObject.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/model/DataObject.php b/core/model/DataObject.php index 8347c4953..c41611841 100644 --- a/core/model/DataObject.php +++ b/core/model/DataObject.php @@ -1703,6 +1703,9 @@ class DataObject extends Controller implements DataObjectInterface { } } } + + // Let any extentions make their own database default data + $this->extend('augmentDefaultRecords', $dummy); } /**