diff options
Diffstat (limited to 'engine/lib')
-rw-r--r-- | engine/lib/entities.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/engine/lib/entities.php b/engine/lib/entities.php index 7d8a6b90a..3cabd93ca 100644 --- a/engine/lib/entities.php +++ b/engine/lib/entities.php @@ -416,12 +416,24 @@ abstract class ElggEntity implements * * @param int $guid Relationship to link to. * @param string $relationship The type of relationship. + * @return bool */ public function addRelationship($guid, $relationship) { return add_entity_relationship($this->getGUID(), $relationship, $guid); } /** + * Remove a relationship + * + * @param int $guid + * @param str $relationship + * @return bool + */ + public function removeRelationship($guid, $relationship) { + return remove_entity_relationship($this->getGUID(), $relationship, $guid); + } + + /** * Adds a private setting to this entity. * * @param $name |