[TYPO3-mvc] Foreign Table as a Domain Model

Nils Blattner nb at cabag.ch
Tue Jan 5 11:17:57 CET 2010


Am 05.01.10 11:14, schrieb Stefan Geith:
> Hi all,
>
> Nils Blattner schrieb:
>> 1) I have an already existing db structure which I will not be able to
>> change! I want to map the Domain Model on top of an existing table and
>> let extbase handle the db (as it's supposed to be). I found very
>> little information on the web (foreign_class in tca which is kinda
>> useless in this case) and the stuff I looked at in the extbase source
>> didn't quite suit my needs, so help would be very appreciated!
>
> That's also my next problem, when converting existing plugins to
> use extbase ...
>
>> 2) t3lib_div::makeInstance() doesn't find my repository class. (C/P
>> from BlogExample, renamed the repository etc) I've checked all the
>> conf files i could think of and finally fixed it by using
>> require_once() which can't be the proper solution.
>
> I had exactly the same problem.
> I could solve this by checking lowercase/uppercase of filename
> and classname exactly:
>
> Pluginname 'my_ext' should give "Tx_MyExt"-prefix.
> "Tx_Myext" (lowercase e) did not work.
>
> /Stefan

Thanks Stefan,

Solved 2) with that

For 1) I'm currently having fun with DataMap classes from Extbase ;P

MfG Nils


More information about the TYPO3-project-typo3v4mvc mailing list