[wp-trac] [WordPress Trac] #14513: Time for a wp_post_relationships table?
WordPress Trac
wp-trac at lists.automattic.com
Mon Jul 9 23:34:13 UTC 2012
#14513: Time for a wp_post_relationships table?
-----------------------------+-------------------------
Reporter: mikeschinkel | Owner:
Type: feature request | Status: closed
Priority: normal | Milestone:
Component: Post Types | Version: 3.0.1
Severity: normal | Resolution: maybelater
Keywords: |
-----------------------------+-------------------------
Comment (by scribu):
Or we could have a single column, 'relation_type', which would be
something like 'posts-to-users' or 'pages-to-posts' etc.
You would have a function, register_relation_type() where you can define
the types of objects. It offers greater flexibility, since you can define
multiple relationship types between the same kinds of objects.
This is how it's done in the Posts 2 Posts plugin and it works really
well.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14513#comment:108>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list