In TYPO3 6.2 in my model I have a common field for files called documents
, it's ObjectStorage
of \TYPO3\CMS\Extbase\Domain\Model\FileReference
nothing unusual :)
The problem is on localized pages, just when I create a localized version of my obj all its fields are localized properly but not documents
- it always uses a file ref(s) from default language :/ I read about unresolved bugs for this, but there's no working workaround pointed... Can any suggest me what to do?
If nothing will help I'll just write my own FileRef
model, but would be great to avoid this as has several places to change.
My field in model (getter and setter are standard)
/**
* Documents
*
* @var \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\TYPO3\CMS\Extbase\Domain\Model\FileReference>
* @cascade remove
*/
protected $documents = NULL;
and in TCA:
'documents' => array(
'exclude' => 1,
'label' => 'Documents',
'config' =>
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig(
'documents',
array('maxitems' => 999)
),
),