MySQL Tabelle für Extbase Model konfigurieren

Wenn Ihr eine vorhandenen TYPO3 Extension mit Extbase erweitern oder neu schreiben wollt, gibt es ein kleines Problem. Die Tabellennamen werden in Extbase standardmäßig anders geschrieben als in den alten Plugins (da steht noch ein "model" mit drin).

Wer sich nun nicht traut die Tabelle umzubenennen, kann mit folgender Zeile TypoScript die Konfiguration so anpassen, das das Extension Model die Daten von der alten Tabelle läd.

Typoscript für alternative Tabelle

  1. config.tx_<myextkey> {
  2.     persistence{
  3.         classes {
  4.             Tx_Extbase_Domain_Model_<myModel> {
  5.                 mapping {
  6.                     tableName = <myCustomTable>
  7.                 }
  8.              }
  9.          }
  10.     }
  11. }

Tags: mysql, extbase, typoscript, model, tabelle,

Keine Antwort zu “MySQL Tabelle für Extbase Model konfigurieren ”

Mein Kommentar

Social Bookmarking

Bookmark bei: Mr. Wong Bookmark bei: Webnews Bookmark bei: Icio Bookmark bei: Oneview Bookmark bei: Linkarena Bookmark bei: Favoriten Bookmark bei: Seekxl Bookmark bei: Favit Bookmark bei: Social Bookmarking Tool Bookmark bei: Power Oldie Bookmark bei: Bookmarks.cc Bookmark bei: Newskick Bookmark bei: Newsider Bookmark bei: Linksilo Bookmark bei: Readster Bookmark bei: Folkd Bookmark bei: Yigg Bookmark bei: Digg Bookmark bei: Del.icio.us Bookmark bei: Reddit Bookmark bei: Simpy Bookmark bei: StumbleUpon Bookmark bei: Slashdot Bookmark bei: Netscape Bookmark bei: Furl Bookmark bei: Yahoo Bookmark bei: Spurl Bookmark bei: Google Bookmark bei: Blinklist Bookmark bei: Blogmarks Bookmark bei: Diigo Bookmark bei: Technorati Bookmark bei: Newsvine Bookmark bei: Blinkbits Bookmark bei: Ma.Gnolia Bookmark bei: Smarking Bookmark bei: Netvouz Information
 

going up