diff --git a/en/orm/database-basics.rst b/en/orm/database-basics.rst index a1b1914b40..e739f8e386 100644 --- a/en/orm/database-basics.rst +++ b/en/orm/database-basics.rst @@ -648,7 +648,7 @@ value object and into SQL expressions:: { public function toPHP($value, DriverInterface $d) { - return Point::parse($value); + return $value === null ? null : Point::parse($value); } public function marshal($value)