|
I haven’t had the time to follow
this thread. I’ll read up as time permits. Doug From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Joshua Scott Doug, Was this solution to the iterator
problem correct? It seems to be working like a champ on my system. Let me know, Josh
From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Joshua Scott Aaron, In my case it is not resetting the parent object. It is
only resetting the where object. The reason I know this is because on the same
page I am pulling two different records from the same iterator without
recreating the object. - JS ------------------------------------------------ Joshua Scott Resonant Media Technologies, LLC. www.resonantmedia.com |
ponderings.wordpress.com "It is impossible to get out
of a problem by using the same type of thinking that it took to get into the
problem." -- Albert Einstein From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Aaron Lynch Joshua, that does reset
and repopulate the Iterator, but it loses its Parent's info. On 5/16/06, Joshua
Scott <[EMAIL PROTECTED]>
wrote: All, It appears that the reset method is not
resetting the where object properly. The following change to the iterator.cfc
object seems to do the trick. <!--- reset ---> Let me know if this is not the proper
solution, but it seems to work for me. - JS
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
On Behalf Of Joshua Scott I had this same problem. Doug might want
to error a validation error when this happens. - JS ------------------------------------------------ Joshua Scott Resonant Media Technologies, LLC. www.resonantmedia.com | ponderings.wordpress.com
"It is impossible to get out
of a problem by using the same type of thinking that it took to get into the
problem." -- Albert Einstein From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
On Behalf Of Brad Haas I'll discovered a
mistake that I made. It is really simple and it caused me to waste about 6
hours, so I'll share my ignorance with the world. In my config.xml
file, I did not wrap the xml "object" tags in a parent
"objects" tag. So I had something like this: <config> config stuff </config> <object> object 1 stuff </object> It should be like
this: <objects> <object> object 1 stuff </object> </objects> The funny thing is
that Reactor will actually work (partially) with my initial configuration. It
will generate objects like DAOs and Gateways, but you won't get Iterators. I
think this is what threw me off. I thought that Reactor would either work or it
wouldn't. I never thought about something in between. I hope my mistake
will prevent someone else from doing the same thing. I apologize if any of you
wasted any brain cells on this one. Thanks, Brad
On May 15, 2006, at 12:41 PM, Brad Haas wrote:
I'm fairly new to
Reactor so maybe I'm doing something wrong. Here's the scenario: MSSQL Database ************************ =================== User =================== UserID (PK) Email Password =================== Group =================== GroupID (PK) GroupName Group Description =================== GroupMember =================== GroupMemberID (PK) GroupID (FK) UserID (FK) reactor.xml (partial) *************************** config data . . <object name="Group"> <hasMany name="User"> <link name="GroupMember" /> </hasMany> </object> <object name="User"> <hasMany name="Group"> <link name="GroupMember" /> </hasMany> </object> <object name="GroupMember"> <hasOne name="Group"> <relate from="GroupID"
to="GroupID" /> </hasOne> <hasOne name="User"> <relate from="UserID" to="UserID"
/> </hasOne> </object> My problem is when I try to call the getGroupIterator (or any
iterator): <cfset User = Application.Reactor.createRecord("User")> <cfset User.load(UserID=1)> <cfset grpQry = User.getGroupIterator().getQuery()> I get this error: The method 'getGroupIterator' could not
be found in component C:\Sites\OneStop\AppData\Record\UserRecordmssql.cfc. When I do a dump on the User component--sure enough there
is no iterator methods. Here's what I've done to try to troubleshoot the issue: * Clear the application scope. * Restart the server. * Delete all the files generated by Reactor. * Delete Reactor entirely and get the latest build from
the repository. Does anyone have any ideas what I may be doing wrong or
what could be happening? I appreciate any insights. Thanks, Brad
|
- [Reactor For CF] Missing Iterator Method??? Brad Haas
- Re: [Reactor For CF] Missing Iterator Method??? Brad Haas
- RE: [Reactor For CF] Missing Iterator Method??? Joshua Scott
- RE: [Reactor For CF] Missing Iterator Method???... Joshua Scott
- Re: [Reactor For CF] Missing Iterator Metho... Aaron Lynch
- RE: [Reactor For CF] Missing Iterator ... Joshua Scott
- RE: [Reactor For CF] Missing Itera... Joshua Scott
- RE: [Reactor For CF] Missing I... Doug Hughes
- RE: [Reactor For CF] Missing I... Joshua Scott
- Re: [Reactor For CF] Missing Iterator Method??? Sean Corfield

