#589 ✓resolved

[PATCH] Fix lazy loading bugs with STI collection

Reported by contagion | October 14th, 2008 @ 10:14 AM

When fetching STI objects through parent model, lazy loading will clear up objects' properties in the collection.

When models want to load lazy properties, it will only query the lazy properties and the key properties from repository, and get the other properties from identity map.

However, the inheritance property, which is not in the query, is crucial for STI model because Model#load will use it to find the correct identity map. Without the inheritance property, model cannot fetch the object from identity map, thus cause the object properties be set to nil.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

People watching this ticket