Somehow 'dirty' came out as 'directy' I have no idea why... :(
Mark On Tue, Nov 3, 2009 at 8:56 AM, Mark Mandel <[email protected]> wrote: > So this is still directly related to having the object as a proxy, as > opposed to having it as a full blown object? > > (Just curious how the performance is of 500 objects, I'd be doing that more > as a query, but I digress....) > > So some things to check out: > > <cfoutput> > Is the object directy: #post.getIsDirty()# <br/> > Is the m2m loaded? : #post.getTagsIsLoaded()# <br/> > </cfoutput> > > Those are the only 2 things that should stop the SQL from firing. > > What SQL are you seeing in the debug when you run your test case? > > Mark > > > On Tue, Nov 3, 2009 at 7:40 AM, whostheJBoss > <[email protected]>wrote: > >> >> Ok, I have tested this on CF8 and CF9 and I get identical behavior as >> I do with Railo. If I make a call to the SOMEPARENT.getWHATEVERArray() >> function, subsequent saves of many-to-many WHATEVER to SOMEPARENT do >> not save. The first addWHATEVER() works, but after that they fail to >> save. >> >> In this case, calling user.getPostsArray(); causes user.addPosts >> (newPost); not to save after the first attempt. >> >> p.s. I probably get under your skin at times, sorry! Anyway, by >> testing I hadn't meant unit tests, I'd just meant that I'd tried the >> functionality in various ways to test if it worked in production, not >> that the code was stable via unit test results. >> >> > Considering I expect a lot of people have done this on CF8, I will be >> > surprised if it doesn't work. That being said, I've been surprised >> before. >> >> Well... surprised? :) >> >> Maybe I'm oblivious to something huge here, but... maybe try my >> example and see? It's a pretty easy example.. >> >> >> >> >> > > > -- > E: [email protected] > T: http://www.twitter.com/neurotic > W: www.compoundtheory.com > > -- E: [email protected] T: http://www.twitter.com/neurotic W: www.compoundtheory.com --~--~---------~--~----~------------~-------~--~----~ Before posting questions to the group please read: http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer You received this message because you are subscribed to the Google Groups "transfer-dev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/transfer-dev?hl=en -~----------~----~----~----~------~----~------~--~---
