BoostN
Well-known member
I've added a new column to xf_user_option table called "my_column". I can see that column when I do a {{ dump($user) }} and it's even in the list when I do {{ dump($user.Option) }} in the template. However, when I try to reference that new column via the following syntax I get an error:
I'm assuming the XF:UserOptions entity doesn't know I have a new column, or does it? How would I tell the 'Option' entity I have a new column? I'm assuming an entity relationship defined in my listener would correct this?
The example in the dev docs does cover a new entity, but really I just want to append my new column to the user entity.
HTML:
<hr class="formRowSep" />
{{ dump($user) }}
<xf:checkboxrow>
<xf:option name="user[my_column]" selected="$user.Option.my_column"
label="My Column?"/>
</xf:checkboxrow>
Code:
Accessed unknown getter 'my_column' on XF:UserOption[2]
I'm assuming the XF:UserOptions entity doesn't know I have a new column, or does it? How would I tell the 'Option' entity I have a new column? I'm assuming an entity relationship defined in my listener would correct this?
The example in the dev docs does cover a new entity, but really I just want to append my new column to the user entity.