Skip to content

Commit

Permalink
Merge pull request cakephp#4371 from berarma/patch-5
Browse files Browse the repository at this point in the history
Correct marshall instead of marshal
  • Loading branch information
dereuromark authored Oct 7, 2016
2 parents 336114e + e93507e commit 3f3a80e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions en/orm/database-basics.rst
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ value object and into SQL expressions::
return Point::parse($value);
}

public function marshall($value)
public function marshal($value)
{
if (is_string($value)) {
$value = explode(',', $value);
Expand Down Expand Up @@ -543,7 +543,7 @@ The above class does a few interesting things:

* The ``toPHP`` method handles parsing the SQL query results into a value
object.
* The ``marshall`` method handles converting, data such as given request data, into our value object.
* The ``marshal`` method handles converting, data such as given request data, into our value object.
We're going to accept string values like ``'10.24,12.34`` and arrays for now.
* The ``toExpression`` method handles converting our value object into the
equivalent SQL expressions. In our example the resulting SQL would be
Expand Down

0 comments on commit 3f3a80e

Please sign in to comment.