Merge pull request #5039 from thezenmonkey/patch-2

FIX "where" method in SQLUpdate Example
This commit is contained in:
Damian Mooyman 2016-02-16 09:23:27 +13:00
commit ace7f2cb2e

View File

@ -165,7 +165,7 @@ E.g.
:::php
<?php
$update = SQLUpdate::create('"SiteTree"')->where(array('ID' => 3));
$update = SQLUpdate::create('"SiteTree"')->addWhere(array('ID' => 3));
// assigning a list of items
$update->addAssignments(array(
@ -279,4 +279,4 @@ An alternative approach would be a custom getter in the object definition.
* [api:SQLSelect]
* [api:DB]
* [api:Query]
* [api:Database]
* [api:Database]