Skip to content

Commit

Permalink
FIX Update CMS fields now that they're being scaffolded
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli committed Aug 8, 2024
1 parent 19b1258 commit 1d7f5ce
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion code/FrameworkTestSiteTreeExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
],
];
}

0 comments on commit 1d7f5ce

Please sign in to comment.