We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e494b6 commit 0bbb1adCopy full SHA for 0bbb1ad
src/Eloquent/Model.php
@@ -352,6 +352,7 @@ public function attributesToArray()
352
{
353
$attributes = parent::attributesToArray();
354
355
+ // Because the original Eloquent never returns objects, we convert
356
// MongoDB related objects to a string representation. This kind
357
// of mimics the SQL behaviour so that dates are formatted
358
// nicely when your models are converted to JSON.
0 commit comments