This repository was archived by the owner on Jan 29, 2020. It is now read-only.
This repository was archived by the owner on Jan 29, 2020. It is now read-only.
Update adapter examples documentation #257
Open
Description
https://github.com/zendframework/zend-db/blob/master/doc/book/adapter.md#examples
Needs updating, the example:
$sql = 'UPDATE ' . $qi('artist')
. ' SET ' . $qi('name') . ' = ' . $fp('name')
. ' WHERE ' . $qi('id') . ' = ' . $fp('id');
$statement = $adapter->query($sql);
$parameters = [
'name' => 'Updated Artist',
'id' => 1,
];
$statement->execute($parameters);
Is wrong because the $adapter->query()
method returns a Result
object not a statement - please check all examples and fix accordingly.
Thanks in advance!