mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #5039 from thezenmonkey/patch-2
FIX "where" method in SQLUpdate Example
This commit is contained in:
commit
ace7f2cb2e
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user