Zuordnung zu "Seiten" -Tabelle von Extbase in TYPO3 6.1
Ich habe eine Erweiterung mit einem Domain-Modell erstelltMessage
. Dieses Modell hat eine Beziehung m: n zum TYPO3pages
(derjenige, der die Details der Seiten enthält, wie Titel, issite_root usw.) Tabelle. Mit demmapping to existing tables
Option gibt es mirtype
Fehlermeldung Seite:
The configured type field for table "pages" is of type int(11) unsigned
This means the type field can not be used for defining the record type.
You have to configure the mappings yourself if you want to map to this
table or extend the correlated class
Also erstelle ich einfach die Relation ohne Mapping, damit ich sie später aus mappen kannsetup.txt
.
Das habe ich Modell erstelltPages
imMyExt/Classes/Domain/Model/
mit allen Gettern / Setzern und Repository inMyExt/Classes/Domain/Repository/
.
In meiner setup.txt habe ich folgendes gemacht:
config.tx_extbase {
persistence{
enableAutomaticCacheClearing = 1
updateReferenceIndex = 0
classes {
Tx_Playfield_Domain_Model_Pages {
mapping {
tableName = pages
columns {
uid.mapOnProperty = uid
pid.mapOnProperty = pid
sorting.mapOnProperty = sorting
title.mapOnProperty = title
subtitle.mapOnProperty = subtitle
}
}
}
}
}
}
Aber wenn ich versuche, auf das von mir erstellte Pages-Modell zuzugreifen,
var_dump($this->pagesRepository->findByUid(74));
es ist auf der Suche nachtx_playfield_domain_model_pages
was nicht existiert, zeigt es
Table 'typo3.tx_playfield_domain_model_pages' doesn't exist: SELECT tx_playfield_domain_model_pages.* FROM tx_playfield_domain_model_pages WHERE tx_playfield_domain_model_pages.uid = '74' LIMIT 1
Was vermisse ich hier?
Aktualisieren
Nach dem Folgenhttp://t3-developer.com/extbase-fluid/cheats-extbase/model/tabelle-pages-in-extbase/ Vorgeschlagen von @Michael Ich bekomme eineempty result
von$this->pagesRepository->findByUid(74)
setup.txt
ladet. Ich habe das gemacht, um es zu überprüfen:
plugin.tx_playfield{
settings{
temp=yes
}
}
Und darauf wird von meinem Controller aus zugegriffen.