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




Reply via email to