mirror of
https://github.com/status-im/realm-js.git
synced 2025-02-18 17:47:32 +00:00
fix for object link nullification
This commit is contained in:
parent
047c414e59
commit
7a6141e066
@ -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)) {
|
||||||
|
if (property.type == PropertyTypeObject) {
|
||||||
|
m_row.nullify_link(column);
|
||||||
|
}
|
||||||
|
else {
|
||||||
m_row.set_null(column);
|
m_row.set_null(column);
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user