public function deleteState(State $state) { $stmt = $this->db->prepare(sprintf('DELETE FROM %s WHERE client_config_id = :client_config_id AND state = :state', $this->prefix . 'states')); $stmt->bindValue(':client_config_id', $state->getClientConfigId(), PDO::PARAM_STR); $stmt->bindValue(':state', $state->getState(), PDO::PARAM_STR); $stmt->execute(); return 1 === $stmt->rowCount(); }
public function deleteState(State $state) { $stmt = $this->db->prepare("DELETE FROM states WHERE client_config_id = :client_config_id AND state = :state"); $stmt->bindValue(":client_config_id", $state->getClientConfigId(), PDO::PARAM_STR); $stmt->bindValue(":state", $state->getState(), PDO::PARAM_STR); $stmt->execute(); return 1 === $stmt->rowCount(); }