src/Compiler/Delete.php
public static function render(Query\Delete $query)
    {
        return Compiler::withDb($query->getDb(), function () use ($query) {
            return Compiler::expression(array(
                'DELETE',
                $query->getType(),
                Aliased::combine($query->getTable()),
                Compiler::word('FROM', Aliased::combine($query->getFrom())),
                Join::combine($query->getJoin()),
                Compiler::word('WHERE', Condition::combine($query->getWhere())),
                Compiler::word('ORDER BY', Direction::combine($query->getOrder())),
                Compiler::word('LIMIT', $query->getLimit()),
            ));
        });
    }
public static function render(Query\Delete $query)
    {
        return Compiler::withDb($query->getDb(), function () use ($query) {
            return Compiler::expression(array(
                'DELETE',
                $query->getType(),
                Aliased::combine($query->getTable()),
                Compiler::word('FROM', Aliased::combine($query->getFrom())),
                Join::combine($query->getJoin()),
                Compiler::word('WHERE', Condition::combine($query->getWhere())),
                Compiler::word('ORDER BY', Direction::combine($query->getOrder())),
                Compiler::word('LIMIT', $query->getLimit()),
            ));
        });
    }
public static function render ( Query \ Delete $ query ) { return Compiler :: withDb ( $ query -> getDb ( ) , function ( ) use ( $ query ) { return Compiler :: expression ( array ( 'DELETE' , $ query -> getType ( ) , Aliased :: combine ( $ query -> getTable ( ) ) , Compiler :: word ( 'FROM' , Aliased :: combine ( $ query -> getFrom ( ) ) ) , Join :: combine ( $ query -> getJoin ( ) ) , Compiler :: word ( 'WHERE' , Condition :: combine ( $ query -> getWhere ( ) ) ) , Compiler :: word ( 'ORDER BY' , Direction :: combine ( $ query -> getOrder ( ) ) ) , Compiler :: word ( 'LIMIT' , $ query -> getLimit ( ) ) , ) ) ; } ) ; }
Render a Delete object
@param  Query\Delete $query
@return string
Render a Delete object