Skip to content
This repository was archived by the owner on Jan 23, 2019. It is now read-only.

Commit d952a2e

Browse files
committed
bug fixed for db transaction
1 parent 7679cc1 commit d952a2e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Components/DatabaseClient.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ public function find(string $from, $wheres = 1, $select = '*', array $options =
279279
$options['limit'] = 1;
280280

281281
$statement = $this->compileSelect($options);
282-
//var_dump($statement, $bindings);die;
282+
283283
return $this->fetchOne($statement, $bindings ?: []);
284284
}
285285

@@ -847,7 +847,7 @@ public function handleWheres($wheres)
847847
}
848848
}
849849
}
850-
//var_dump($nodes);die;
850+
851851
$where = implode(' ', $nodes);
852852
unset($nodes);
853853

@@ -1099,7 +1099,7 @@ public function beginTransaction()
10991099
{
11001100
$this->connect();
11011101

1102-
return $this->pdo->rollBack();
1102+
return $this->pdo->beginTransaction();
11031103
}
11041104

11051105
/**

0 commit comments

Comments
 (0)