Repository: pimcore/pimcore (language: php)

Issue:
[Bug]: getClassificationStoreFieldName 
### Pimcore version

11.2.6

### Steps to reproduce

Hey !

In this documentation https://pimcore.com/docs/platform/Pimcore/Objects/Object_Classes/Data_Types/Classification_Store/#using-classification-store-via-php-api , it's write

`
/** @var \Pimcore\Model\DataObject\Classificationstore $classificationStore */
$classificationStore = $dataObject->getClassificationStoreFieldName();

foreach ($classificationStore->getGroups() as $group) {
    var_dump($group->getConfiguration()->getName());

    foreach ($group->getKeys() as $key) 
    {
        $keyConfiguration = $key->getConfiguration();

        $value = $key->getValue();
        if ($value instanceof \Pimcore\Model\DataObject\Data\QuantityValue) {
            $value = (string)$value;
        }

        var_dump([
            $keyConfiguration->getId(),
            $keyConfiguration->getType(),
            $keyConfiguration->getName(),
            $keyConfiguration->getTitle(),
            $value,
            ($key->getFieldDefinition() instanceof QuantityValue),
        ]);
    }
}
`

So i try this 
`
$classificationStore = StoreConfig::getById(1);
$classificationStore = $dataObject->getClassificationStoreFieldName();
`

### Actual Behavior

I got error 

`06:16:07 ERROR     [pimcore] Class: Pimcore\Model\DataObject\Classificationstore\StoreConfig => call to undefined method getClassificationStoreFieldName`

### Expected Behavior

Should work so that we can then use The ClassificationStore::getGroups() method returns an array of Group objects. In turn, the Group::getKeys() method returns an array of Key objects for that group.

I may be using the function incorrectly. In this case I'd like to understand where the "$dataObject"' comes from.

Thanks in advance


Discussion / hints:

Fix patch:
diff --git a/doc/05_Objects/01_Object_Classes/01_Data_Types/15_Classification_Store.md b/doc/05_Objects/01_Object_Classes/01_Data_Types/15_Classification_Store.md
index f60e2fc0e0a..5d16be89c33 100644
--- a/doc/05_Objects/01_Object_Classes/01_Data_Types/15_Classification_Store.md
+++ b/doc/05_Objects/01_Object_Classes/01_Data_Types/15_Classification_Store.md
@@ -134,7 +134,7 @@ The `ClassificationStore::getGroups()` method returns an array of `Group` object
 
 ```php
 /** @var \Pimcore\Model\DataObject\Classificationstore $classificationStore */
-$classificationStore = $dataObject->getClassificationStoreFieldName();
+$classificationStore = $dataObject->get<YOUR_CLASSIFICATION_FIELD>();
 
 foreach ($classificationStore->getGroups() as $group) {
     var_dump($group->getConfiguration()->getName());


Test patch: