[TYPO3-mvc] Beware using Repository or Model in extension name

Sebastian Gebhard sebastian.gebhard at googlemail.com
Wed Jul 29 15:52:42 CEST 2009


Steffen Kamper schrieb:
> Hi,
> 
> today is my day - i'm running from one error into the next.
> 
> Starting with wrong naming of classes, then a typo which i didn't found, 
> then to very strange errors where datamapper searched classes by wrong 
> name.
> And - tara - i had the name ViewhelperRepository, and Repository was 
> taken from the name because:
> 
> $this->objectType = str_replace(array('_Repository_', 'Repository'), 
> array('_Model_', ''), $this->getRepositoryClassName());
> 
> Now i did the 3rd renaming and search for next errors ...
> 
> vg Steffen
Now that you say that, i remember I had the same Problem with my car 
project, when I tried to handle the car models (like "Golf" or "A3").
That's the disadvantage of convention over configuration ;)
Good luck for your further work today!


More information about the TYPO3-project-typo3v4mvc mailing list