'Boolean', 'ShirtNumber' => 'Varchar', ]; private static $has_one = [ 'FavouriteTeam' => DataObjectTest\Team::class, 'MultiRelational' => [ 'class' => DataObject::class, DataObjectSchema::HAS_ONE_MULTI_RELATIONAL => true, ], ]; private static $belongs_many_many = [ 'Teams' => DataObjectTest\Team::class ]; private static $has_many = [ 'Fans' => Fan::class . '.Favourite', // Polymorphic - Player fans 'CaptainTeams' => Team::class . '.Captain', 'FoundingTeams' => Team::class . '.Founder' ]; private static $belongs_to = [ 'CompanyOwned' => Company::class . '.Owner' ]; private static $searchable_fields = [ 'IsRetired', 'ShirtNumber' ]; public function ReturnsNull() { return null; } }