A lot of things.
This commit is contained in:
22
XF/Entity/Forum.php
Normal file
22
XF/Entity/Forum.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user