aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engine/lib/entities.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/engine/lib/entities.php b/engine/lib/entities.php
index 43bb4a710..1e48ff508 100644
--- a/engine/lib/entities.php
+++ b/engine/lib/entities.php
@@ -316,6 +316,17 @@
remove_entity_relationships($this->getGUID());
remove_entity_relationships($this->getGUID(),"",true);
return true;
+ }
+
+ /**
+ * Add a relationship.
+ *
+ * @param int $guid Relationship to link to.
+ * @param string $relationship The type of relationship.
+ */
+ public function addRelationship($guid, $relationship)
+ {
+ return add_entity_relationship($this->getGUID(), $relationship, $guid);
}
function setPrivateSetting($name, $value) {