You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
extension Property where V : ObjectBox.IdBase {
/// Equivalent to the == operator in query blocks.
public func isEqual(to value: ObjectBox.Id) -> ObjectBox.PropertyQueryCondition<ObjectBox.Property<E, V, R>.EntityType, ObjectBox.Id>
}
extension Property where V : FixedWidthInteger {
/// Equivalent to the == operator in query blocks.
public func isEqual(to value: ObjectBox.Property<E, V, R>.ValueType) -> ObjectBox.PropertyQueryCondition<ObjectBox.Property<E, V, R>.EntityType, ObjectBox.Property<E, V, R>.ValueType>
}
I think this might be the cause of the problem, but I don't know how to solve it.
I also have not found a workaround for this when this is one of many query conditions.
However, if the only query condition is an isEqual on the ID, like the above example, you can instead write code to just get the object from its Box using the ID: entityDataBox.get(id)
Is there an existing issue?
Build info
Steps to reproduce
query code:
I encountered a compilation error at OneEntity.id.isEqual(to: id) here:
Ambiguous use of 'isEqual(to:)'
Expected behavior
I expect OneEntity.id.isEqual(to: id) should work
Actual behavior
Compilation error
The text was updated successfully, but these errors were encountered: