From 1d7f5ce5ad43d780ff3c9e54133c68ce4b64743a Mon Sep 17 00:00:00 2001 From: Guy Sartorelli Date: Thu, 8 Aug 2024 12:50:17 +1200 Subject: [PATCH] FIX Update CMS fields now that they're being scaffolded --- code/FrameworkTestSiteTreeExtension.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/code/FrameworkTestSiteTreeExtension.php b/code/FrameworkTestSiteTreeExtension.php index bb7b753..ba52fe1 100644 --- a/code/FrameworkTestSiteTreeExtension.php +++ b/code/FrameworkTestSiteTreeExtension.php @@ -3,7 +3,15 @@ use SilverStripe\ORM\DataExtension; class FrameworkTestSiteTreeExtension extends DataExtension { - private static $has_one = array('RelationFieldsTestPage' => 'RelationFieldsTestPage'); private static $belongs_many_many = array('RelationFieldsTestPages' => 'RelationFieldsTestPage'); + + private static array $scaffold_cmsfields_settings = [ + 'ignoreFields' => [ + 'RelationFieldsTestPage', + ], + 'ignoreRelations' => [ + 'RelationFieldsTestPages', + ], + ]; }