|
Basically, <object name=”obj1”> <hasMany name=”obj2”> <link name=”obj3”> </hasMany> </object> <object name=”obj2”/> <object name=”obj3”> <hasOne name=”obj1”> <relate from=”obj3_field”
to=”obj1_field”/> </hasOne> <hasOne name=”obj2”> <relate from=”obj3_field”
to=”obj2_field”/> </hasOne> </object> <cfset record = reactorFactory.createRecord(“obj1”)> <cfset record.load(id=somevalue)> <cfdump var=”#record.getobj2Iterator().getQuery()#”
/> <cfset record.load(id=someothervalue)> <cfdump var=”#record.getobj2Iterator().getQuery()#”
/> They are different here. João Fernandes From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Joshua Scott Can you send me your code and let me see what I am doing wrong? - JS From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of João Fernandes Joshua, I can’t reproduce your problem. I did something similar to
your code and I get the correct results from the iterator. João Fernandes From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Joshua Scott Any ideas? From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Joshua Scott I am using version 254 and am still having the problem. I found that if I do a Load() on the record object it solves the
problem, but I would think that reset should do it. Any Ideas? - JS _____________________________________________________________________ joshua scott
p.
w.
http://www.resonantmedia.com _____________________________________________________________________ This message is
confidential and is not intended to be used by anyone other than the designated
recipient. Information herein is considered privileged, proprietary, and
private information. Any other use (including possession or forwarding) of this
message is prohibited and will be enforced with maximum penalty under domestic
and international law. We are very serious about security and confidentiality. From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Doug Sims you may need to get the latest
from SVN. see this post from a few days ago:
I've got the
following code: currPage =
application.reactor.createRecord("Page");
currPage.setPageID(1);
currPage.load();
q1 = currPage.getPageVersionIterator().getQuery();
currPage.setPageID(2);
currPage.load();
q2 = currPage.getPageVersionIterator().getQuery();
currPage.setPageID(3);
currPage.load();
q3 = currPage.getPageVersionIterator().getQuery(); Although the
contents of the page record change when I set the PK and call load(), the
iterator seems to be caching the query. q1 gives the same recordset as q2 and
q3, when each of them should be different. I've tried
calling currPage.getPageVersionIterator().reset() in
between the getQuery() calls, but it makes no difference. Is this a bug,
or is the iterator meant to work this way? Thanks -- Reactor for ColdFusion Mailing List -- [email protected]
-- Archives at http://www.mail-archive.com/reactor%40doughughes.net/
Update Reactor to the latest release... that was just fixed
- Show quoted text -
Thanks Jared. It works
perfectly now On 5/9/06, Joshua Scott < [EMAIL PROTECTED]> wrote:
-- Reactor for ColdFusion Mailing List -- [email protected] -- Archives at http://www.mail-archive.com/reactor%40doughughes.net/
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- RE: [Reactor For CF] Strange Interator Problem João Fernandes
- RE: [Reactor For CF] Strange Interator Problem Joshua Scott
- RE: [Reactor For CF] Strange Interator Problem João Fernandes
- RE: [Reactor For CF] Strange Interator Problem Joshua Scott
- Re: [Reactor For CF] Strange Interator Proble... Aaron Lynch
- Re: [Reactor For CF] Strange Interator Pr... Dave Shuck

