Skip to content

Commit

Permalink
Revert "[5.2] Fix issue #11815"
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed May 26, 2016
1 parent 0908679 commit 5a2833a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 18 deletions.
10 changes: 2 additions & 8 deletions src/Illuminate/Database/Eloquent/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -573,15 +573,9 @@ protected function addUpdatedAtColumn(array $values)
return $values;
}

if (count($this->getQuery()->joins) > 0) {
$column = $this->model->getQualifiedUpdatedAtColumn();
} else {
$column = $this->model->getUpdatedAtColumn();
}
$column = $this->model->getUpdatedAtColumn();

return array_merge($values, [
$column => $this->model->freshTimestampString(),
]);
return Arr::add($values, $column, $this->model->freshTimestampString());
}

/**
Expand Down
10 changes: 0 additions & 10 deletions src/Illuminate/Database/Eloquent/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -1786,16 +1786,6 @@ public function getUpdatedAtColumn()
return static::UPDATED_AT;
}

/**
* Get the fully qualified "updated at" column.
*
* @return string
*/
public function getQualifiedUpdatedAtColumn()
{
return $this->getTable().'.'.$this->getUpdatedAtColumn();
}

/**
* Get a fresh timestamp for the model.
*
Expand Down

0 comments on commit 5a2833a

Please sign in to comment.