Update DataObject.php

Documentation fix:

Table at http://api.silverstripe.org/3.1/class-DataObject.html is displaying the data wrong. Current it says "protected A" instead of "protected ValidationResult" as it should be.
This commit is contained in:
spekulatius 2014-11-09 21:19:39 +13:00
parent 0a5c380c92
commit 14a1086b03

View File

@ -996,7 +996,8 @@ class DataObject extends ViewableData implements DataObjectInterface, i18nEntity
* It is expected that you call validate() in your own application to test that an object is valid before * It is expected that you call validate() in your own application to test that an object is valid before
* attempting a write, and respond appropriately if it isn't. * attempting a write, and respond appropriately if it isn't.
* *
* @return A {@link ValidationResult} object * @see {@link ValidationResult}
* @return ValidationResult
*/ */
protected function validate() { protected function validate() {
$result = ValidationResult::create(); $result = ValidationResult::create();