silverstripe-framework/tests/php/ORM/ManyManyThroughListTest
Guy Sartorelli 50a0018363
FIX many_many through should allow subclasses (#11230)
```php
class HomePage extends Page
{
    private static $many_many = [
        'HeroImages' => [
            'through' => PageImageLink::class,
            'from' => 'Page',
            'to' => 'Image',
        ]
    ];

}
```

```php
class PageImageLink extends DataObject
{
    private static $has_one = [
        'Page' => SiteTree::class,
        'Image' => Image::class,
    ];
}

This fails because the linking object's relation class doesn't exactly match the owner. Sharing the linking objects across various entries in the ancestry should be a supported use case.

Co-authored-by: Aaron Carlino <unclecheese@leftandmain.com>
2024-05-13 14:15:37 +12:00
..
FallbackLocale.php BUGFIX many many through not sorting by join table (#8534) 2018-11-01 13:42:27 +13:00
Item.php API Implement many_many through polymorphic (from only) (#7928) 2018-03-22 10:26:25 +13:00
JoinObject.php Add tests that show that joinClass default_sort is not used and order is honoured 2018-09-28 15:38:37 +02:00
Locale.php BUGFIX many many through not sorting by join table (#8534) 2018-11-01 13:42:27 +13:00
PolyItem.php MNT Remove TODO comments 2023-10-30 13:21:09 +13:00
PolyJoinObject.php API Implement many_many through polymorphic (from only) (#7928) 2018-03-22 10:26:25 +13:00
PolyObjectA.php API Implement many_many through polymorphic (from only) (#7928) 2018-03-22 10:26:25 +13:00
PolyObjectB.php API Implement many_many through polymorphic (from only) (#7928) 2018-03-22 10:26:25 +13:00
PseudoPolyJoinObject.php FIX many_many through should allow subclasses (#11230) 2024-05-13 14:15:37 +12:00
TestObject.php API Implement many_many through polymorphic (from only) (#7928) 2018-03-22 10:26:25 +13:00
TestObjectSubclass.php FIX many_many through should allow subclasses (#11230) 2024-05-13 14:15:37 +12:00