Skip to content

Commit

Permalink
Merge pull request #148 from VentureCraft/develop
Browse files Browse the repository at this point in the history
Better catch for saving objects
  • Loading branch information
duellsy committed Jun 19, 2015
2 parents 02a63d9 + 3658945 commit 2c09f7c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Venturecraft/Revisionable/RevisionableTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ public function preSave()
if (gettype($val) == 'object' && ! method_exists($val, '__toString')) {
unset($this->originalData[$key]);
unset($this->updatedData[$key]);
array_push($this->dontKeep, $key);
}
}

Expand Down

0 comments on commit 2c09f7c

Please sign in to comment.