-
-
Save hailwood/d3bc4085061faf7f3e0f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//not ideal but it works | |
class TeamMember extends DataObject { | |
private static $belongs_many_many = [ | |
'OurPeoplePages' => 'OurPeoplePage', | |
'ContactUsPages' => 'ContactUsPage' | |
]; | |
} | |
class OurPeoplePage extends Page { | |
private static $many_many = [ | |
'Team' => 'TeamMember' | |
]; | |
} | |
class ContactUsPage extends Page { | |
private static $many_many = [ | |
'Team' => 'TeamMember' | |
]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment