mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
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:
parent
0a5c380c92
commit
14a1086b03
@ -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
|
||||
* attempting a write, and respond appropriately if it isn't.
|
||||
*
|
||||
* @return A {@link ValidationResult} object
|
||||
* @see {@link ValidationResult}
|
||||
* @return ValidationResult
|
||||
*/
|
||||
protected function validate() {
|
||||
$result = ValidationResult::create();
|
||||
|
Loading…
x
Reference in New Issue
Block a user