[TYPO3-mvc] Get repository object from table name
Franz Koch
typo3.RemoveForMessage at elements-net.de
Thu Jan 27 13:06:48 CET 2011
Hey,
>> $modelClassName = t3lib_div::underscoredToUpperCamelCase($tableName);
>> $repositoryClassName = str_replace('_Model_', '_Repository_',
>> $modelClassName) . 'Repository';
>
> Thanks for your answer! Unfortunately this wasn't working well,
> because it created a class name without underscores, like:
> "TxExtDomainRepositoryRecordRepository"
sorry, I added the first line from my mind.
--
kind regards,
Franz Koch
More information about the TYPO3-project-typo3v4mvc
mailing list