Skip to content

Commit

Permalink
Patch update method.
Browse files Browse the repository at this point in the history
  • Loading branch information
yajra committed Jun 20, 2017
1 parent 494b867 commit f49a709
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Oci8/Eloquent/OracleEloquent.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,13 @@ public function setSequenceName($name)
public function update(array $attributes = [], array $options = [])
{
if (! $this->exists) {
// If dirty attributes contains binary field
// extract binary fields to new array
if ($this->extractBinaries($dirty)) {
return $this->newQuery()->updateLob($attributes, $this->binaryFields, $this->getKeyName());
}
return false;
}

return $this->newQuery()->update($attributes);
// If dirty attributes contains binary field
// extract binary fields to new array
if ($this->extractBinaries($dirty)) {
return $this->newQuery()->updateLob($attributes, $this->binaryFields, $this->getKeyName());
}

return $this->fill($attributes)->save($options);
Expand Down

0 comments on commit f49a709

Please sign in to comment.