Chris,

I'm trying to follow this.

Could you provide your config file, and some code examples of what you are
trying to do?

Mark

On Wed, Jan 27, 2010 at 9:38 AM, achebe <[email protected]> wrote:

> I'm trying to figure out the proper way to remove all of the children
> of a parent in a onetomany relationship before adding new children
> when those children have a composite key containing the
> parentonetomany.
>
> The reason I ask is if I get the parent and call transfer.delete() for
> each of it's children everything works as expected, however if I get a
> clone of the parent and call transfer.delete() for each of the
> children the child is not disassociated with the parent unless I call
> transfer.discard(parent) or child.removeParent() after deleting the
> child.
>
> Calling child.removeParent() seems to screw up the cache somehow;
> things get all screwy unless I call transfer.discard(parent) so I'm
> guessing I should just toss the parent out of the cache instead of
> trying to disassociate it.
>
> Should I not be trying to remove children from a clone or should I
> just discard the clone from the cache after I remove the children and
> not worry about it?
>
> Thanks,
> Chris
>
> --
> Before posting questions to the group please read:
>
> http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer
>
> You received this message because you are subscribed to the Google Groups
> "transfer-dev" 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/transfer-dev?hl=en




-- 
E: [email protected]
T: http://www.twitter.com/neurotic
W: www.compoundtheory.com

Hands-on ColdFusion ORM Training @ cf.Objective() 2010
www.ColdFusionOrmTraining.com/

-- 
Before posting questions to the group please read:
http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer

You received this message because you are subscribed to the Google Groups 
"transfer-dev" 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/transfer-dev?hl=en

Reply via email to