-
Notifications
You must be signed in to change notification settings - Fork 824
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
181 additions
and
24 deletions.
There are no files selected for viewing
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
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
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
25 changes: 25 additions & 0 deletions
25
tests/php/ORM/DataListTest/EagerLoading/MixedBackwardsHasManyEagerLoadObject.php
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
|
||
namespace SilverStripe\ORM\Tests\DataListTest\EagerLoading; | ||
|
||
use SilverStripe\ORM\DataObject; | ||
use SilverStripe\Dev\TestOnly; | ||
|
||
class MixedBackwardsHasManyEagerLoadObject extends DataObject implements TestOnly | ||
{ | ||
// Table names become too long when using class name | ||
private static $table_name = 'MixedBackHasManyEagerLoad'; | ||
|
||
private static $db = [ | ||
'Title' => 'Varchar' | ||
]; | ||
|
||
private static $has_one = [ | ||
'MixedBackwardsHasOneEagerLoadObject' => MixedBackwardsHasOneEagerLoadObject::class | ||
]; | ||
|
||
|
||
private static $many_many = [ | ||
'MixedBackwardsManyManyEagerLoadObjects' => MixedBackwardsManyManyEagerLoadObject::class | ||
]; | ||
} |
Oops, something went wrong.