RushOrm
RushOrm copied to clipboard
Question: Access to parent?
Hello, I have
Parent.class:
@List...
List<Child> children;
Is there any way to access to parent from a child?
Child child = new RushSearch().findSingle(Child);
child.parent ???
Thanks
Hi,
A simple RushSearch can do this.
Parent parent = new RushSearch.whereEqual("children", child).findSingle(Parent.class);
Thanks
Thank you!
Maybe it is common enough to be in the FAQ, I think.