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
I have this in my entity:
Code:
Because I want to match...
Read more
ادامه مطلب...
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
ادامه مطلب...