I am hitting a bit of a logical snag in the composition structure, it
seems a little hack-ish, but here...
You could do it as I have done below, I'm guessing you just want to
know what the arguments would be, so here it is as a structure:
deleteThis = instance.Transfer.get("users.posts",
arguments.postID);
cdArgs = structNew();
cdArgs.transfer = deleteThis;
cdArgs.objectIgnoreList = "users.user";
cdArgs.compositionIgnoreList = "posts.category";
instance.Transfer.cascadeDelete
(argumentCollection=cdArgs);
So, assuming my structure was:
users.user
-onetomany posts.post
posts.post
-onetomany posts.comments
posts.comments
posts.category
-manytoone posts.post
So, a post belongs to a user, who can have many posts. A post can have
many comments. Many posts can be in the same category.
When I run the above cascade delete on the above structure I would
expect:
posts.post is deleted, all posts.comments associated with that post
are deleted
users.user is not deleted, posts.category that was associated with the
post is not deleted
So, the object (single) list ignores user since it was specified and
it also ignores the category composition since it was specified.
On Jun 28, 5:37 pm, Mark Mandel <[email protected]> wrote:
> Can you show me how you see the syntax working, I'm struggling to visualise
> it.
>
> Mark
>
> On Fri, Jun 26, 2009 at 12:50 PM, whostheJBoss
> <[email protected]>wrote:
>
>
>
>
>
> > Sorry, a list of individual objects and a list of compositions to
> > skip.
>
> > On Jun 25, 2:34 pm, Mark Mandel <[email protected]> wrote:
> > > A list of singles?
>
> > > Can you be more specific?
>
> > > Mark
>
> > > On Thu, Jun 25, 2009 at 9:48 PM, whostheJBoss <
> > [email protected]>wrote:
>
> > > > I would say that we could specify a list of
> > > > singles and a list of compositions
>
> > > --
> > > E: [email protected]
> > > T:http://www.twitter.com/neurotic
> > > W:www.compoundtheory.com
>
> --
> E: [email protected]
> T:http://www.twitter.com/neurotic
> W:www.compoundtheory.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
-~----------~----~----~----~------~----~------~--~---