[RSS Feed/News] Getting error with Entity relations

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
I followed the XF docs about relations but it doesn't seem to work for me.

I have a table battle_points that contains user_id column.

I have this in my entity:

Code:

Code:
$structure->relations = [
            'User' => [
                'entity'     => 'XF:User',
                'type'       => self::TO_ONE,
                'conditions' => 'user_id',
                'primary'    => true
            ],
        ];
        $structure->defaultWith = ['User'];

Because I want to match...

Read more

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom