2023-10-02 04:25:14 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace SilverStripe\ORM\Tests\SQLSelectTest;
|
|
|
|
|
|
|
|
use SilverStripe\Dev\TestOnly;
|
|
|
|
use SilverStripe\ORM\DataObject;
|
|
|
|
|
|
|
|
class CteRecursiveObject extends DataObject implements TestOnly
|
|
|
|
{
|
|
|
|
private static $table_name = 'SQLSelectTestCteRecursive';
|
|
|
|
|
|
|
|
private static $db = [
|
|
|
|
'Title' => 'Varchar',
|
|
|
|
];
|
|
|
|
|
|
|
|
private static $has_one = [
|
2024-06-17 23:37:39 +02:00
|
|
|
'Parent' => CteRecursiveObject::class,
|
2023-10-02 04:25:14 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
private static $has_many = [
|
2024-06-17 23:37:39 +02:00
|
|
|
'Children' => CteRecursiveObject::class . '.Parent',
|
2023-10-02 04:25:14 +02:00
|
|
|
];
|
|
|
|
}
|