fix for object link nullification

This commit is contained in:
Ari Lazier 2016-05-05 14:08:58 -07:00
parent 4daa1ff5a1
commit 3b24a4270e
1 changed files with 6 additions and 1 deletions

View File

@ -180,7 +180,12 @@ namespace realm {
size_t column = property.table_column; size_t column = property.table_column;
if (property.is_nullable && Accessor::is_null(ctx, value)) { if (property.is_nullable && Accessor::is_null(ctx, value)) {
m_row.set_null(column); if (property.type == PropertyTypeObject) {
m_row.nullify_link(column);
}
else {
m_row.set_null(column);
}
return; return;
} }