Skip to content

Support data observers for related entities #268

Open
@jpmcosta

Description

@jpmcosta

Note these related feature requests:


This might be a feature request.
It seems that currently it is not possible to listen for nested changes.

  • ObjectBox version: 1.2.1
  • Reproducibility: always
boxFor(Item::class.java).query().build().subscribe().observer { items ->
    // Not called when Note.text changes.
}

Entities

@Entity
class Item {

    @Id
    open var id: Long = 0L

    lateinit open var notes: ToMany<Note>
}
@Entity
class Note {

    @Id
    open var id: Long = 0L

    open var text: String? = null

    @Backlink
    lateinit open var parentItem: ToOne<Item>
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions