You can get the KeyIterator from the Keychain, and then add or remove Keys
from the interator as you need to. When you save the Keychain, it's
KeyIterator will also be saved, and it should automatically handle adding or
removing any associated Keys as part of the save process.

On Jan 4, 2008 9:00 AM, Mike Haggerty <[EMAIL PROTECTED]> wrote:

> Hello.
>
> I am wondering if there is an easier way to do the following with Reactor:
>
> I have keys and keychains.  There is a many to many relationship between
> the two.  I am trying to figure out the best way to add keys to a
> keychain.  Currently, I have constructed a function in the
> keychainRecord.cfc called addKeysToKeychain(), which takes a list of key
> IDs.  This function then DELETEs all rows in the keychain_key MTM table
> specific to the current keychain, and loops through the list of key IDs,
> and INSERTs a new row to the keychain_key MTM table for each.
>
> This method works fine, but I was just curious as to whether there
> existed some secret Reactor magic that would allow me to do something
> similar without witting a custom function.
>
> Thanks!
> Mike Haggerty
>
>
> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
> -- --
> Reactor for ColdFusion Mailing List
> [EMAIL PROTECTED]
> Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
> -- --
>
>


-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Reactor for ColdFusion Mailing List
[EMAIL PROTECTED]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

Reply via email to