Elgg\Database\RelationshipsTable::getRow PHP Method

getRow() public method

Get a database row from the relationship table
public getRow ( integer $id ) : stdClass | false
$id integer The relationship ID
return stdClass | false False if no row found
    public function getRow($id)
    {
        $sql = "SELECT * FROM {$this->db->prefix}entity_relationships WHERE id = :id";
        $params = [':id' => (int) $id];
        return $this->db->getDataRow($sql, null, $params);
    }