public function buildDeleteRelationQuery($relation, $entity) {
        $query = "DELETE FROM " . $relation->getTable() . " ";
        $query .= "WHERE " . $relation->getForeignColumn() . " = '" . $entity->getId() . "';";
        return $query;
    }