for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace BfwSql\Queries;
/**
* Class to write DELETE queries
*
* @package bfw-sql
* @author Vermeulen Maxime <[email protected]>
* @version 2.0
* @method \BfwSql\Queries\Delete from(string|array $nameInfos, string|array|null $columns=null)
*/
class Delete extends AbstractQuery
{
* {@inheritdoc}
protected $requestType = 'delete';
protected function defineQueriesParts()
parent::defineQueriesParts();
$this->queriesParts['from'] = $this->queriesParts['table'];
$this->querySgbd->disableQueriesParts($this->queriesParts);
}
protected function obtainGenerateOrder(): array
return [
'from' => [
'prefix' => 'DELETE FROM',
'canBeEmpty' => false
],
'where' => []
];