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:
Ingo Schommer 2008-09-29 17:21:32 +00:00
parent 8920edb85f
commit e254ac5d54

View File

@ -322,7 +322,10 @@ abstract class ModelAdmin extends LeftAndMain {
protected function getManagedModels() {
$models = $this->stat('managed_models');
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;
}