src/flowcode/ceibo/support/DaoSupport.php
public function buildDeleteRelationQuery($relation, $entity) {
        $query = "DELETE FROM " . $relation->getTable() . " ";
        $query .= "WHERE " . $relation->getForeignColumn() . " = '" . $entity->getId() . "';";
        return $query;
    }
public function buildDeleteRelationQuery($relation, $entity) {
        $query = "DELETE FROM " . $relation->getTable() . " ";
        $query .= "WHERE " . $relation->getForeignColumn() . " = '" . $entity->getId() . "';";
        return $query;
    }
public function buildDeleteRelationQuery ( $ relation , $ entity ) { $ query = "DELETE FROM " . $ relation -> getTable ( ) . " " ; $ query .= "WHERE " . $ relation -> getForeignColumn ( ) . " = '" . $ entity -> getId ( ) . "';" ; return $ query ; }
Build a delete query for an entity an its relation.
@param type $relation
@param type $entity
@return string
Build a delete query for an entity an its relation .