Repository navigation
include.seperate and include.limit support for hasMany - #4177
Conversation
To prepare for being able to run a association method on multiple source instances i've moved the association methods to the association prototype instead of having them on the instance prototype, the instance prototype now only has proxy methods to the methods on the association.
bb23859 to
a009a1d
Compare
eb0eb7d to
e440f26
Compare
There was a problem hiding this comment.
There was a problem hiding this comment.
Ah that's going to be annoying to change and remember if i constantly misspelled it :D
|
Hi guys, what does the query look like with It looks like it does another query to retrieve associated records rather than retrieving them in one shot? |
|
@SourceBoy The Ideally we still want to support a single query limit of associations, but |
|
Cool. Thanks for the clarification. |
…mit with include.seperate
ffd7302 to
6ba2b67
Compare
include.seperate and include.limit support for hasMany
There was a problem hiding this comment.
@overlookmotel i forgot about this, i'd like to you take a look at some point, but the supportShim severely fucked up during a refactor of HasMany.
There was a problem hiding this comment.
Hi @mickhansen. Work has quietened down now, so I've got some time to get back on coding. Was planning to finally get round to writing the tests for transaction and CLS context passing.
How did the supportShim fuck up? Happy to have a look and figure it out...
There was a problem hiding this comment.
Did it start going haywire with this PR?
There was a problem hiding this comment.
I don't recall exactly, but the call stack got butchered so i couldn't figure it out, but probably the stubs were no longer correct so tests were failing on the query option association.
There was a problem hiding this comment.
Yep, because i refactored the methods in HasMany, so i reckon the stubs need to be fixed, i didn't have the energy for it when i was implementing and then i simply forgot ;p
There was a problem hiding this comment.
OK cool. I'll have a look when I get a chance sometime in next couple of weeks.
No description provided.