P2P Connection Reset for Specific Post
-
Hi all,
Great plugin.
I have looked through dozens of support posts trying to find the answer to what I am trying to do – without luck.I am creating and deleting connections from the front-end using my own forms.
I have a list of users connected to a given post.
When this list is updated I need to delete connections for any users removed and add them for those added.I would like to delete all connections for a given post/relationship and then add them all again – saves needing to keep track of which have been added/removed.
Ideally something like:
p2p_type(‘posts_to_users’)->disconnect( $postID); (i.e. just leaving out the userID)
or
p2p_type(‘posts_to_users’)->disconnect( $postID, *);Any suggestions?
The topic ‘P2P Connection Reset for Specific Post’ is closed to new replies.