# Hi all, question: I want to store an id choice from my custom table in a newly added custom field

**URL:** <https://forum.shopware.com/t/hi-all-question-i-want-to-store-an-id-choice-from-my-custom-table-in-a-newly-added-custom-field/68154>\
**Category:** Administration (EN)\
**Created:** [6. Juli 2020 um 10:38 UTC](https://forum.shopware.com/t/hi-all-question-i-want-to-store-an-id-choice-from-my-custom-table-in-a-newly-added-custom-field/68154 "2020-07-06T10:38:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![JoAnneWDT](https://avatars.discourse-cdn.com/v4/letter/j/e19adc/32.png) [@JoAnneWDT](https://forum.shopware.com/u/JoAnneWDT)\
**Post date:** [6. Juli 2020 um 10:38 UTC](https://forum.shopware.com/t/hi-all-question-i-want-to-store-an-id-choice-from-my-custom-table-in-a-newly-added-custom-field/68154/1 "2020-07-06T10:38:07Z")

</div>

I created a custom table with additional settings for customers. Next I added a field to the customer core table in which I’d like to store the id choice per customer. I extended with EntityExtensionInterface to the class which holds the custom table definition, storagename for this field is customer\_setting, propertyName is customerSetting, and referenceField is id.

When I manually store an id from this custom table, with certain settings, I can retrieve and use these settings in the storefront.

For the backend I created a single select to the entity custom\_table, with using v-model=‘customer.extensions.customerSetting.id’ the manually ‘injected’ id from the custom table, this choice gets a ‘Vee’ indicating this is selected. Changing to another id and saving results in an error: Customer could not be saved. Also when no value is ‘injected’ into the added field from the customer table, the object (?) customer.extensions.customerSetting does not exist, and thus with v-model=‘customer.extensions.customerSetting.id’ the result is an error for the single-select box I try to construct. It is obvious I am missing something, but I have no clue, can anyone elucidate?

&nbsp;
