As you're already extending JsonView for the Configuration, you could also change the behaviour of transformValues() in order to toArray all $values being an instance of StorageObject:
protected function transformValue($value, array $configuration)
{
if($value instanceof \TYPO3\CMS\Extbase\Persistence\ObjectStorage) {
$value = $value->toArray();
}
...
rest of the original Function.
}
what do you think?
BTW: thx for the HowTo ;)
As you're already extending JsonView for the Configuration, you could also change the behaviour of transformValues() in order to toArray all $values being an instance of StorageObject:
what do you think?
BTW: thx for the HowTo ;)