Elgg\Database\RelationshipsTable::remove PHP Метод

remove() публичный Метод

This function lets you say "$guid_one is no longer a $relationship of $guid_two."
public remove ( integer $guid_one, string $relationship, integer $guid_two ) : boolean
$guid_one integer GUID of the subject entity of the relationship
$relationship string Type of the relationship
$guid_two integer GUID of the target entity of the relationship
Результат boolean
    public function remove($guid_one, $relationship, $guid_two)
    {
        $obj = $this->check($guid_one, $relationship, $guid_two);
        if (!$obj) {
            return false;
        }
        return $this->delete($obj->id);
    }