Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Bugfix: the state for date property was not properly loaded

  • Loading branch information...
commit 3ed99256414108ef1a0439cd22b35137d08bc4ca 1 parent 4340a0c
@daniphp authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/morph/property/Date.php
View
6 src/morph/property/Date.php
@@ -61,7 +61,7 @@ public function __getRawValue()
* @param $value
* @return Morph_Property_Generic
*/
- public function __setRawValue($value)
+ public function __setRawValue($value, $state = null)
{
if ($value instanceof \MongoDate) {
$this->value = (int) $value->sec;
@@ -72,6 +72,10 @@ public function __setRawValue($value)
$this->value = null;
}
}
+
+ if (null != $state) {
+ $this->state = $state;
+ }
return $this;
}
Please sign in to comment.
Something went wrong with that request. Please try again.