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
..
2023-10-30 13:21:09 +13:00
2022-05-19 14:09:04 +12:00
2023-07-20 16:06:01 +12:00
2023-10-30 13:21:09 +13:00
2021-07-06 16:43:54 +12:00
2022-04-14 13:12:59 +12:00
2016-11-23 19:25:12 +13:00
2018-01-16 18:39:30 +00:00
2022-04-14 13:12:59 +12:00
2022-04-14 13:12:59 +12:00
2022-04-14 13:12:59 +12:00
2022-04-14 13:12:59 +12:00