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;
}