Prado\Data\Common\TDbCommandBuilder::createDeleteCommand PHP Метод

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

The conditions for delete is given by the $where argument and the parameters for the condition is given by $parameters.
public createDeleteCommand ( $where, $parameters = [] ) : TDbCommand
Результат TDbCommand delete command.
    public function createDeleteCommand($where, $parameters = array())
    {
        $table = $this->getTableInfo()->getTableFullName();
        if (!empty($where)) {
            $where = ' WHERE ' . $where;
        }
        $command = $this->createCommand("DELETE FROM {$table}" . $where);
        $this->bindArrayValues($command, $parameters);
        return $command;
    }