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
This query worked in NHibernate 5.2.7 (although it didn't actually fetch the many-to-one in the component, see #1232). But with NHibernate 5.3.2 this query now throws an exception:
InvalidOperationException: Property x.ComponentProperty does not exist on entity TypeOfUnrelatedManyToOneProperty
at NHibernate.Persister.Entity.AbstractEntityPersister.PropertySelectFragment(String name, String suffix, ICollection`1 fetchProperties, Boolean allProperties)
If I remove the .Fetch(x => x.UnrelatedManyToOneProperty) part of the query it works (and even correctly fetches the many-to-one in the component, which means that #1232 was fixed, except that we now have this regression).
The text was updated successfully, but these errors were encountered:
fredericDelaporte
changed the title
[5.3.x regression] Linq Fetch over component after fetching a many-to-one throws exception
Linq Fetch over component after fetching a many-to-one throws exception
Sep 3, 2020
I have a Linq query that looks like this:
This query worked in NHibernate 5.2.7 (although it didn't actually fetch the many-to-one in the component, see #1232). But with NHibernate 5.3.2 this query now throws an exception:
If I remove the
.Fetch(x => x.UnrelatedManyToOneProperty)
part of the query it works (and even correctly fetches the many-to-one in the component, which means that #1232 was fixed, except that we now have this regression).The text was updated successfully, but these errors were encountered: