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 19e9e9f commit 195382aCopy full SHA for 195382a
src/Jenssegers/Mongodb/Relations/EmbedsOneOrMany.php
@@ -301,6 +301,9 @@ protected function setEmbedded($data)
301
*/
302
protected function updateTimestamps(Model $model)
303
{
304
+ // Check if this model uses timestamps first.
305
+ if ( ! $model->timestamps) return;
306
+
307
$time = $model->freshTimestamp();
308
309
if ( ! $model->isDirty(Model::UPDATED_AT))
0 commit comments