Title: Connection Cardinality Problem
Last modified: August 21, 2016

---

# Connection Cardinality Problem

 *  Resolved [John](https://wordpress.org/support/users/jsing/)
 * (@jsing)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/connection-cardinality-problem/)
 * Is anyone else experiencing a problem with cardinality not limiting connections
   to one?
 *     ```
       p2p_register_connection_type( array(
       		'name' => 'budgets_to_courses',
       		'from' => 'budgets',
       		'to' => 'courses',
       		'cardinality' => 'one_to_many'
       		)
           );
       ```
   
 * That should allow a course to only be on one budget however after connection 
   one the button to create another still displays. I have also tried many_to_one.
   Any thoughts?
 * [http://wordpress.org/plugins/posts-to-posts/](http://wordpress.org/plugins/posts-to-posts/)

The topic ‘Connection Cardinality Problem’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/posts-to-posts_7a8e9d.svg)
 * [Posts 2 Posts](https://wordpress.org/plugins/posts-to-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/posts-to-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/posts-to-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/posts-to-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/posts-to-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/posts-to-posts/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [John](https://wordpress.org/support/users/jsing/)
 * Last activity: [12 years, 10 months ago](https://wordpress.org/support/topic/connection-cardinality-problem/)
 * Status: resolved