G
grantus
Guest
Member
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:
Code:
Code:
Code:
...
Read more
Continue reading...
I have a table
battle_points
that contains user_id
column.I have this in my entity:
Code:
Code:
Code:
Code:
Code:
$structure->relations = [
'User' => [
'entity' => 'XF:User',
'type' => self::TO_ONE,
'conditions' => 'user_id',
'primary' => true
],
];
$structure->defaultWith = ['User'];
Read more
Continue reading...