diff --git a/src/Illuminate/Database/Eloquent/Builder.php b/src/Illuminate/Database/Eloquent/Builder.php index b67ff1d05bb4..fd9919ef05ef 100755 --- a/src/Illuminate/Database/Eloquent/Builder.php +++ b/src/Illuminate/Database/Eloquent/Builder.php @@ -822,15 +822,10 @@ protected function addUpdatedAtColumn(array $values) return $values; } - if (! empty($this->getQuery()->joins)) { - $column = $this->model->getQualifiedUpdatedAtColumn(); - } else { - $column = $this->model->getUpdatedAtColumn(); - } - - return array_merge($values, [ - $column => $this->model->freshTimestampString(), - ]); + return Arr::add( + $values, $this->model->getUpdatedAtColumn(), + $this->model->freshTimestampString() + ); } /** diff --git a/src/Illuminate/Database/Eloquent/Concerns/HasTimestamps.php b/src/Illuminate/Database/Eloquent/Concerns/HasTimestamps.php index fb355c5bf217..ce3e0801dee6 100644 --- a/src/Illuminate/Database/Eloquent/Concerns/HasTimestamps.php +++ b/src/Illuminate/Database/Eloquent/Concerns/HasTimestamps.php @@ -122,14 +122,4 @@ public function getUpdatedAtColumn() { return static::UPDATED_AT; } - - /** - * Get the fully qualified "updated at" column. - * - * @return string - */ - public function getQualifiedUpdatedAtColumn() - { - return $this->getTable().'.'.$this->getUpdatedAtColumn(); - } }