Closed HTMHell closed 4 years ago
It is not currently possible. Instead you can use UserBean.findByAddress
to have it.
But I'm 100% for jaguar to support both relation with object in the future :) but it need some work and refactoring so it will be not in near future
Related issue about this is discuss here https://github.com/Jaguar-dart/jaguar_orm/issues/147
Let's take the code from the examples to simplify:
How to get
User
object fromAddressBean
?final address = await addressBean.find('1', preload: true);
I would like to access something like
address.user
which will return aUser
object that has been loaded from the relationship. Is it possible?