Commit 195382a8 authored by Jens Segers's avatar Jens Segers

Check if timestamps are enabled for embedded models, #220

parent 19e9e9f5
......@@ -301,6 +301,9 @@ abstract class EmbedsOneOrMany extends Relation {
*/
protected function updateTimestamps(Model $model)
{
// Check if this model uses timestamps first.
if ( ! $model->timestamps) return;
$time = $model->freshTimestamp();
if ( ! $model->isDirty(Model::UPDATED_AT))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment