FIX "where" method in SQLUpdate Example

Method should be addWhere
This commit is contained in:
Richard Rudy 2016-02-15 02:27:04 -05:00
parent 5515f4252a
commit 87718597e8

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]