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
I have a rom-sql project and use auto-struct with custom entity classes. That works perfectly. My repos return instances and their association-instances of my custom entity classes. However, as soon as I use the as option in an association definition, the association result is no longer mapped to the corresponding entity.
post=posts.combine(:create_user).by_pk(1).oneexpect(post).tobe_a(Entities::Post)# successexpect(post.create_user).tobe_a(Entities::User)# fails it is a instance of Entities::CreateUser
Describe the bug
I have a rom-sql project and use auto-struct with custom entity classes. That works perfectly. My repos return instances and their association-instances of my custom entity classes. However, as soon as I use the
as
option in an association definition, the association result is no longer mapped to the corresponding entity.To Reproduce
Expected behavior
My environment
The text was updated successfully, but these errors were encountered: