1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-02-07 23:28:50 +01:00

24 lines
338 B
PHP
Raw Normal View History

2018-12-29 14:24:27 +01:00
<?php
namespace Modules\DDT\Components;
use Modules\DDT\DDT;
trait RelationTrait
{
public function getParentID()
{
return 'idddt';
}
public function parent()
{
return $this->belongsTo(DDT::class, $this->getParentID());
}
public function ddt()
{
return $this->parent();
}
}