Hi Dennis,

Just wondering if you can point me in the right direction with regards
to the other scaffolding bugs.

I think I may have found another, although it may be my poor
understanding of how this all hangs together.

I have something like this:

                        <object name="EditorGroup" table="ne_editorgroup"
sequence="NE_EDITORGROUP_KEY_SEQ">
                                <id name="editorgroupId" type="numeric" 
column="EDITORGROUP_ID"/
>
                                <property name="groupName" type="string" 
column="GROUP_NAME"/>

                                <manytomany name="Permissions" 
table="NE_EDITORGROUP_PERMISSION">
                                        <link column="PERMISSION_ID" 
to="admin.Permission" />
                                        <link column="GROUP_ID" 
to="admin.EditorGroup" />
                                        <collection type="array">
                                                 <key property="PERMISSION_ID" 
/>
                                        </collection>
                                </manytomany>

                        </object>

                        <object name="Permission" table="NE_PERMISSION"
sequence="NE_PERMISSION_SEQ">
                                <id name="permissionId" type="numeric" 
column="PERMISSION_ID"/>
                                <property name="permissionName" type="string"
column="PERMISSION_NAME"/>
                                <property name="int1" type="numeric"
column="PERMISSION_KEY_VALUE_INT_1" nullable="true"/>
                                <property name="int2" type="numeric"
column="PERMISSION_KEY_VALUE_INT_2" nullable="true"/>
                                <property name="string1" type="string"
column="PERMISSION_KEY_VALUE_STRING_1" nullable="true"/>
                                <property name="string2" type="string"
column="PERMISSION_KEY_VALUE_STRING_2" nullable="true"/>
                                <manytoone name="PermissionType">
                                        <link to="admin.PermissionType" 
column="PERMISSION_TYPE"/>
                                </manytoone>
                        </object>
                </package>

When I open up the admin.EditorGroup.edit event, use the checkboxes to
select the PermissionTypes and submit it, I get an error like this:

The method addPermission was not found in component C:\www\cf-
frameworks\transfer_v1.1\transfer\com\TransferObject.cfc.

Does that ring any bells?   It should be similar to the category
association in your example (which works beautifully).  Did you have
to do anything to fix it?

Thanks!

Andrew.

On Mar 31, 5:24 pm, Dennis Clark <[email protected]> wrote:
> On 3/31/2009 2:01 AM, Andrew wrote:
>
> > Okay, I'm managed to fix this by doing the following:
>
> > c:\www\cf-frameworks\modelglue_2.0.304\ModelGlue\unity\orm
> > \transfer>diff Transfe
> > rAdapter.cfc TransferAdapter-mine.cfc
> > 288c288
> > <                       <cfset arguments.field.sourceKey = fields
> > [i].name />
> > ---
>
> >>                       <cfset arguments.field.sourceKey = fields[i].alias />
>
> > 296c296
> > <                       <cfset arguments.field.sourceColumn = fields
> > [i].name />
> > ---
>
> >>                       <cfset arguments.field.sourceColumn = 
> >> fields[i].alias />
>
> It's funny how many of us have done the exact same thing.
>
> The Trac site for Model-Glue has had a ticket[1] for this issue for
> almost 2 years now. It looks like the ticket was opened the same day
> 2.0.304 was committed. Since 304 was the last release for version 2,
> anyone encountering this bug has had to patch it for themselves.
>
> I recently created an enhanced version of the Widget application that
> fixes this and a few other scaffolding bugs and introduces some new
> features. I've put the application on RIAForge and named it Walidget[2].
> I encourage you to take a look at it and rip off any features in it that
> you like.
>
> [1]http://trac.model-glue.com/model-glue/ticket/295
> [2]http://walidget.riaforge.org/
>
> Cheers,
>
> Dennis
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "model-glue" 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/model-glue?hl=en

For more about Model-Glue, check http://www.model-glue.com .
-~----------~----~----~----~------~----~------~--~---

Reply via email to