2023-06-07 04:59:02 +02:00
|
|
|
<?php
|
|
|
|
|
2023-07-06 04:21:28 +02:00
|
|
|
namespace SilverStripe\ORM\Tests\DataListTest\EagerLoading;
|
2023-06-07 04:59:02 +02:00
|
|
|
|
|
|
|
use SilverStripe\ORM\DataObject;
|
|
|
|
use SilverStripe\Dev\TestOnly;
|
|
|
|
|
|
|
|
class BelongsManyManySubSubEagerLoadObject extends DataObject implements TestOnly
|
|
|
|
{
|
|
|
|
private static $table_name = 'BelongsManyManySubSubEagerLoadObject';
|
|
|
|
|
|
|
|
private static $db = [
|
|
|
|
'Title' => 'Varchar'
|
|
|
|
];
|
|
|
|
|
|
|
|
private static $many_many = [
|
|
|
|
// note: using 'MyManyMany' as name to otherise will get
|
|
|
|
// mysqli_sql_exception: Incorrect table name'BelongsManyManySubSubEagerLoadObject_BelongsManyManySubEagerLoadObjects'
|
|
|
|
// or 'BelongsManyManySubSubEagerLoadObject_BelongsManyManySubEagerLoadObjects'
|
|
|
|
// for relationships named BelongsManyManySubEagerLoadObjects (plural) and
|
|
|
|
// BelongsManyManySubEagerLoadObject (singular)
|
|
|
|
'MyManyMany' => BelongsManyManySubEagerLoadObject::class
|
|
|
|
];
|
|
|
|
}
|