silverstripe-framework/tests/php/ORM/ManyManyThroughListTest.yml
Michael Strong 55f95b7bc8 BUGFIX many many through not sorting by join table (#8534)
* BUGFIX many many through not sorting by join table

* #8534 added docs to support many many sorting fix

* #8534 added test cases for many_many default sorting
2018-11-01 14:17:15 +13:00

78 lines
2.6 KiB
YAML

SilverStripe\ORM\Tests\ManyManyThroughListTest\TestObject:
parent1:
Title: 'my object'
SilverStripe\ORM\Tests\ManyManyThroughListTest\Item:
child1:
Title: 'item 1'
child2:
Title: 'item 2'
SilverStripe\ORM\Tests\ManyManyThroughListTest\JoinObject:
join1:
Title: 'join 1'
Sort: 4
Parent: =>SilverStripe\ORM\Tests\ManyManyThroughListTest\TestObject.parent1
Child: =>SilverStripe\ORM\Tests\ManyManyThroughListTest\Item.child1
join2:
Title: 'join 2'
Sort: 2
Parent: =>SilverStripe\ORM\Tests\ManyManyThroughListTest\TestObject.parent1
Child: =>SilverStripe\ORM\Tests\ManyManyThroughListTest\Item.child2
SilverStripe\ORM\Tests\ManyManyThroughListTest\PolyObjectA:
obja1:
Title: 'object A1'
SilverStripe\ORM\Tests\ManyManyThroughListTest\PolyObjectB:
objb1:
Title: 'object B1'
objb2:
Title: 'object B2'
SilverStripe\ORM\Tests\ManyManyThroughListTest\PolyItem:
child1:
Title: 'item 1'
child2:
Title: 'item 2'
SilverStripe\ORM\Tests\ManyManyThroughListTest\PolyJoinObject:
join1:
Title: 'join 1'
Sort: 4
Parent: =>SilverStripe\ORM\Tests\ManyManyThroughListTest\PolyObjectA.obja1
Child: =>SilverStripe\ORM\Tests\ManyManyThroughListTest\PolyItem.child1
join2:
Title: 'join 2'
Sort: 2
Parent: =>SilverStripe\ORM\Tests\ManyManyThroughListTest\PolyObjectA.obja1
Child: =>SilverStripe\ORM\Tests\ManyManyThroughListTest\PolyItem.child2
join3:
Title: 'join 3'
Sort: 2
Parent: =>SilverStripe\ORM\Tests\ManyManyThroughListTest\PolyObjectB.objb1
Child: =>SilverStripe\ORM\Tests\ManyManyThroughListTest\PolyItem.child2
join4:
Title: 'join 4'
Sort: 2
Parent: =>SilverStripe\ORM\Tests\ManyManyThroughListTest\PolyObjectB.objb2
Child: =>SilverStripe\ORM\Tests\ManyManyThroughListTest\PolyItem.child2
SilverStripe\ORM\Tests\ManyManyThroughListTest\Locale:
international:
Title: 'International'
Locale: 'en_NZ'
URLSegment: 'international'
IsGlobalDefault: 1
mexico:
Title: 'Mexico'
Locale: 'es_MX'
URLSegment: 'mexico'
IsGlobalDefault: 0
argentina:
Title: 'Argentina'
Locale: 'es_AR'
URLSegment: 'argentina'
IsGlobalDefault: 0
SilverStripe\ORM\Tests\ManyManyThroughListTest\FallbackLocale:
mexico_international:
Sort: 2
Parent: =>SilverStripe\ORM\Tests\ManyManyThroughListTest\Locale.mexico
Locale: =>SilverStripe\ORM\Tests\ManyManyThroughListTest\Locale.international
mexico_argentina:
Sort: 1
Parent: =>SilverStripe\ORM\Tests\ManyManyThroughListTest\Locale.mexico
Locale: =>SilverStripe\ORM\Tests\ManyManyThroughListTest\Locale.argentina