mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
MINOR Documentation
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@63293 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
8920edb85f
commit
e254ac5d54
@ -322,7 +322,10 @@ abstract class ModelAdmin extends LeftAndMain {
|
|||||||
protected function getManagedModels() {
|
protected function getManagedModels() {
|
||||||
$models = $this->stat('managed_models');
|
$models = $this->stat('managed_models');
|
||||||
if(!count($models)) user_error('ModelAdmin::getManagedModels():
|
if(!count($models)) user_error('ModelAdmin::getManagedModels():
|
||||||
You need to specify at least one DataObject subclass in $managed_models', E_USER_ERROR);
|
You need to specify at least one DataObject subclass in protected static $managed_models.
|
||||||
|
Make sure the visibility of your property is set to "protected"',
|
||||||
|
E_USER_ERROR
|
||||||
|
);
|
||||||
|
|
||||||
return $models;
|
return $models;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user