Merge pull request #2714 from chillu/pulls/validate-write-message

Leave original ValidationException intact in write()
This commit is contained in:
Sean Harvey 2013-12-10 16:36:13 -08:00
commit d81c3570af

View File

@ -1125,7 +1125,7 @@ class DataObject extends ViewableData implements DataObjectInterface, i18nEntity
if (!$valid->valid()) { if (!$valid->valid()) {
$writeException = new ValidationException( $writeException = new ValidationException(
$valid, $valid,
"Validation error writing a $this->class object: " . $valid->message() . ". Object not written.", $valid->message(),
E_USER_WARNING E_USER_WARNING
); );
} }