22 lines
482 B
PHP
22 lines
482 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace RomhackPlaza\Master\XF\Entity;
|
||
|
|
|
||
|
|
use XF\Mvc\Entity\Structure;
|
||
|
|
|
||
|
|
class Forum extends XFCP_Forum
|
||
|
|
{
|
||
|
|
public static function getStructure(Structure $structure)
|
||
|
|
{
|
||
|
|
$structure = parent::getStructure($structure);
|
||
|
|
|
||
|
|
$structure->relations['Club'] = [
|
||
|
|
'entity' => 'RomhackPlaza\Master:Club',
|
||
|
|
'type' => self::TO_ONE,
|
||
|
|
'conditions' => 'node_id',
|
||
|
|
'primary' => false
|
||
|
|
];
|
||
|
|
|
||
|
|
return $structure;
|
||
|
|
}
|
||
|
|
}
|