From c5956d6ac478c4b5a19ccea429b01fef8526fe2d Mon Sep 17 00:00:00 2001 From: Daniel Hensby Date: Fri, 22 Aug 2014 15:19:01 +0100 Subject: [PATCH] Use injector to create `ValidationResult` --- model/DataObject.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model/DataObject.php b/model/DataObject.php index 3f10f4a63..34d9ba93b 100644 --- a/model/DataObject.php +++ b/model/DataObject.php @@ -1001,7 +1001,7 @@ class DataObject extends ViewableData implements DataObjectInterface, i18nEntity * @return A {@link ValidationResult} object */ protected function validate() { - $result = new ValidationResult(); + $result = ValidationResult::create(); $this->extend('validate', $result); return $result; }