silverstripe-framework/tests/php/ORM/DataListTest/EagerLoading/BelongsToSubEagerLoadObject.php
2023-07-17 12:03:09 +12:00

24 lines
573 B
PHP

<?php
namespace SilverStripe\ORM\Tests\DataListTest\EagerLoading;
use SilverStripe\ORM\DataObject;
use SilverStripe\Dev\TestOnly;
class BelongsToSubEagerLoadObject extends DataObject implements TestOnly
{
private static $table_name = 'BelongsToSubEagerLoadObject';
private static $db = [
'Title' => 'Varchar'
];
private static $has_one = [
'BelongsToEagerLoadObject' => BelongsToEagerLoadObject::class
];
private static $belongs_to = [
'BelongsToSubSubEagerLoadObject' => BelongsToSubSubEagerLoadObject::class
];
}