# How to set a belongsTo field to null

**URL:** <https://discuss.emberjs.com/t/how-to-set-a-belongsto-field-to-null/11839>\
**Category:** Ember Data\
**Created:** [October 29, 2016, 4:59pm UTC](https://discuss.emberjs.com/t/how-to-set-a-belongsto-field-to-null/11839 "2016-10-29T16:59:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![konrad](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/konrad/32/13521_2.png) [@konrad](https://discuss.emberjs.com/u/konrad)\
**Post date:** [October 29, 2016, 4:59pm UTC](https://discuss.emberjs.com/t/how-to-set-a-belongsto-field-to-null/11839/1 "2016-10-29T16:59:33Z")

</div>

I can’t set a property thats defined as a ‘belongsTo’ field to null. The property simply keeps the value it had before. How can I do that? ASAP

---

<div class="post-metadata">

**Author:** ![l\_tonz](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/l_tonz/32/12634_2.png) [@l\_tonz](https://discuss.emberjs.com/u/l_tonz)\
**Post date:** [October 29, 2016, 7:45pm UTC](https://discuss.emberjs.com/t/how-to-set-a-belongsto-field-to-null/11839/2 "2016-10-29T19:45:43Z")

</div>

this.set(‘property’, null)?

---

<div class="post-metadata">

**Author:** ![konrad](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/konrad/32/13521_2.png) [@konrad](https://discuss.emberjs.com/u/konrad)\
**Post date:** [October 29, 2016, 7:58pm UTC](https://discuss.emberjs.com/t/how-to-set-a-belongsto-field-to-null/11839/3 "2016-10-29T19:58:04Z")

</div>

You are right, I figured it out. I was doing something weird with that property somewhere else and thats why it was set immediately to the old value again. Hard to debug sometimes.

Thanks answays! 🙂
