public function callProcedure($procedureName = '', $bindParams = [], $isSelect = true)
{
$this->bindParams = $bindParams;
$stmt = $this->prepare("exec {$procedureName}");
$this->execute($stmt);
if ($isSelect) {
return $stmt->fetchAll(\PDO::FETCH_ASSOC);
} else {
return $stmt->rowCount();
}
}