|  | @@ -276,6 +276,14 @@ class sbo__relationship extends ChadoField {
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |    /**
 |  |    /**
 | 
											
												
													
														|  |     * Retrive the subject from the current relationship.
 |  |     * Retrive the subject from the current relationship.
 | 
											
												
													
														|  | 
 |  | +   *
 | 
											
												
													
														|  | 
 |  | +   * @param $relationship
 | 
											
												
													
														|  | 
 |  | +   *   A single expanded relationship from a variable generated by chado_generate_var().
 | 
											
												
													
														|  | 
 |  | +   *   At a minimum, if will have a subject, object and type which should be expanded to
 | 
											
												
													
														|  | 
 |  | +   *   the appropriate type of record depending on the content type this widget
 | 
											
												
													
														|  | 
 |  | +   *   is attached to.
 | 
											
												
													
														|  | 
 |  | +   * @return
 | 
											
												
													
														|  | 
 |  | +   *   An array of information for the subject of the $relationship.
 | 
											
												
													
														|  |     */
 |  |     */
 | 
											
												
													
														|  |    private function getRelationshipSubject($relationship) {
 |  |    private function getRelationshipSubject($relationship) {
 | 
											
												
													
														|  |      $name = [];
 |  |      $name = [];
 | 
											
										
											
												
													
														|  | @@ -325,6 +333,14 @@ class sbo__relationship extends ChadoField {
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |    /**
 |  |    /**
 | 
											
												
													
														|  |     * Retrieve the object from the current relationship.
 |  |     * Retrieve the object from the current relationship.
 | 
											
												
													
														|  | 
 |  | +   *
 | 
											
												
													
														|  | 
 |  | +   * @param $relationship
 | 
											
												
													
														|  | 
 |  | +   *   A single expanded relationship from a variable generated by chado_generate_var().
 | 
											
												
													
														|  | 
 |  | +   *   At a minimum, if will have a subject, object and type which should be expanded to
 | 
											
												
													
														|  | 
 |  | +   *   the appropriate type of record depending on the content type this widget
 | 
											
												
													
														|  | 
 |  | +   *   is attached to.
 | 
											
												
													
														|  | 
 |  | +   * @return
 | 
											
												
													
														|  | 
 |  | +   *   An array of information for the object of the $relationship.
 | 
											
												
													
														|  |     */
 |  |     */
 | 
											
												
													
														|  |    private function getRelationshipObject($relationship) {
 |  |    private function getRelationshipObject($relationship) {
 | 
											
												
													
														|  |      $name = [];
 |  |      $name = [];
 | 
											
										
											
												
													
														|  | @@ -373,6 +389,23 @@ class sbo__relationship extends ChadoField {
 | 
											
												
													
														|  |      return $record;
 |  |      return $record;
 | 
											
												
													
														|  |    }
 |  |    }
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | 
 |  | +  /**
 | 
											
												
													
														|  | 
 |  | +   * Load a specific relationship as indicated by $delta.
 | 
											
												
													
														|  | 
 |  | +   * This function is called by the load method below.
 | 
											
												
													
														|  | 
 |  | +   *
 | 
											
												
													
														|  | 
 |  | +   * Note: The relationship is loaded by adding it the the entitiy values.
 | 
											
												
													
														|  | 
 |  | +   *
 | 
											
												
													
														|  | 
 |  | +   * @param $relationship
 | 
											
												
													
														|  | 
 |  | +   *   A single expanded relationship from a variable generated by chado_generate_var().
 | 
											
												
													
														|  | 
 |  | +   *   At a minimum, if will have a subject, object and type which should be expanded to
 | 
											
												
													
														|  | 
 |  | +   *   the appropriate type of record depending on the content type this widget
 | 
											
												
													
														|  | 
 |  | +   *   is attached to.
 | 
											
												
													
														|  | 
 |  | +   * @param $entity
 | 
											
												
													
														|  | 
 |  | +   *   The entity the widget is attached to.
 | 
											
												
													
														|  | 
 |  | +   * @param $delta
 | 
											
												
													
														|  | 
 |  | +   *   An integer indicating the specific relationship to load. This is usually the rank
 | 
											
												
													
														|  | 
 |  | +   *   from the relationship table (if there is one).
 | 
											
												
													
														|  | 
 |  | +   */
 | 
											
												
													
														|  |    private function loadRelationship($relationship, &$entity, $delta) {
 |  |    private function loadRelationship($relationship, &$entity, $delta) {
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |      $field_name = $this->field['field_name'];
 |  |      $field_name = $this->field['field_name'];
 |