Skip to content

Commit 20c82ad

Browse files
committed
- Experimental support for a TableGateway
1 parent f223f92 commit 20c82ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/TableGateway.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ public function update(array $data, array $options = []) {
153153
}
154154
$valueData = array_diff_key($data, array_combine($this->primaryKeys, $this->primaryKeys));
155155
$update->setAll($valueData);
156-
if(array_key_exists($options, 'debug')) {
156+
if(array_key_exists('debug', $options)) {
157157
$update->debug($options['debug']);
158158
}
159159
return $update->run();
@@ -182,7 +182,7 @@ public function delete(array $data = null, array $options = []) {
182182
foreach($keyData as $fieldName => $value) {
183183
$delete->where(sprintf("%s=?", $this->db->quoteField($fieldName)), $value);
184184
}
185-
if(array_key_exists($options, 'debug')) {
185+
if(array_key_exists('debug', $options)) {
186186
$delete->debug($options['debug']);
187187
}
188188
return $delete->run();

0 commit comments

Comments
 (0)