Collection. destroyAll(...) does not work.

56 views
Skip to first unread message

Philip Iyobose Eki

unread,
Aug 12, 2013, 10:37:01 PM8/12/13
to persis...@googlegroups.com
I have 2 entites: Members and Role.
Member has a many to many relationship with Role.
this relationship is tested and works.

When I try to clean a member of all it's roles i.e by doing this:

member.roles.destroyAll(null, function() 
 persistence.add(member); 
 persistence.flush();
 });

It does not remove the entities in the relationship table (Member_roles_Role in this case. I still see them in the database.
Has this function been implemented? thanks

Hualong Shen

unread,
Jul 15, 2015, 2:51:01 PM7/15/15
to persis...@googlegroups.com
Same problem.... Did you solve it at last?

在 2013年8月12日星期一 UTC-4下午10:37:01,Iyobo Eki写道:
Reply all
Reply to author
Forward
0 new messages