RSS Feed/News Entity Relations

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
27,112
Points
823

Reputation:

Can somebody please help me understand what I have done wrong here?

I have the following class extension saved in LifeSpot/ThreadSummary/XF/Entity/Thread.php:

PHP:

Code:
<?php
namespace LifeSpot\ThreadSummary\XF\Entity;
use XF\Mvc\Entity\Structure;
use XF\Mvc\Entity\Entity;
class Thread extends XFCP_Thread
{
    public static function getStructure(Structure $structure)
    {
        $structure = parent::getStructure($structure);
        $structure->relations['Summary'] = [
            'entity'...

Read more

Continue reading...
 
Status
Not open for further replies.
Top