mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
24 lines
546 B
PHP
24 lines
546 B
PHP
|
<?php
|
||
|
|
||
|
namespace SilverStripe\CMS\Model;
|
||
|
|
||
|
use SilverStripe\ORM\DataObject;
|
||
|
|
||
|
/**
|
||
|
* Represents a link between a dataobject parent and a page in a HTML content area
|
||
|
*
|
||
|
* @method DataObject Parent() Parent object
|
||
|
* @method SiteTree Linked() Page being linked to
|
||
|
*
|
||
|
* Run `MigrateSiteTreeLinkingTask` to migrate from old table to this.
|
||
|
*/
|
||
|
class SiteTreeLink extends DataObject
|
||
|
{
|
||
|
private static $table_name = 'SiteTreeLink';
|
||
|
|
||
|
private static $has_one = [
|
||
|
'Parent' => DataObject::class,
|
||
|
'Linked' => SiteTree::class,
|
||
|
];
|
||
|
}
|