• Resolved argeee

    (@argeee)


    Hi Scribu,
    As mentioned on my previous post I have a relationship of products->products.
    I have set up the following:

    $my_connection_type = p2p_register_connection_type( array(
    		'from' => 'product',
    		'to' => 'product',
    		'reciprocal' => false,
    		'prevent_duplicates' => true
    	) );

    The idea being that some products don’t have a reciprocal relationship but if they do I don’t want a duplicate entry.
    The problem is that when I insert a product it creates an entry on the box on the other side of the relationship. Mind you, in the table the relationship is not created. It also (correctly) prevents me from inserting the product as it filters it out.
    If I do reciprocal => false, prevent_duplicates=> false, I see the entry duplicated on the box for those products that have a reciprocal relationship.

    Could this be a bug or i am doing something wrong?

    Thanks
    Version 0.9.1

    http://wordpress.org/extend/plugins/posts-to-posts/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Posts 2 Posts] reciprocal=false and prevent_duplicates=true creating box entry’ is closed to new replies.