I'm realising that I'm starting to run into memory issues.
I have three tables, and their relations are as follows:
Subscription ->1:1-> Topic ->1:n-> Stories
Are there a way when I retrieve a subscription, it will only return the Topic, but not the Stories?
Or are there a way to completely destroy it after it's used? It seems like there are residue memory usage even after I set subscription variable to null.
Page 1 of 1
Not load Relation of Relations
#2
Posted 12 April 2010 - 02:43 AM
By default, related objects will not be fetched. Only if you add a with() to the method chain. So check your code and remove the with() call if you don't want that.
#3
Posted 12 April 2010 - 05:57 PM
Thanks Mike, you're right it doesn't load the related objects without the with() call.
Share this topic:
Page 1 of 1