Semi reciprocal connection
-
Hello There,
I have a nice situation, in which an element can be connected from itself to itself, and to another type.
Setting reciprocal is no really what I expect, but there’s no point in the from and to either.
I will explain a sample situation, assume that I have a user object with twitter, and a company object with twitter.
a user may follow another user, or may follow a company
such as:p2p_register_connection_type(array( 'name' => 'followers', 'from' => 'person', 'to' => array('person', 'company'),
Assume that the link is only one way, a user may only follow or be followed, but not together.
Attempting to set the from and to labels when the settings is reciprocal=true does not work.
Any suggestions?
- The topic ‘Semi reciprocal connection’ is closed to new replies.