public function delete($condition = null, $table = null) { $table = $table ?: $this->tableName; return $this->query("DELETE FROM {$table}" . $this->where($condition)); }