Hallo,

ich habe derzeit ein kleines problem.

Ich lade mit meiner Extension eine drittanbieter Tabelle in MySQL.
Ich erstelle ein Model etc. und soweit klappt auch alles.

Jedoch hat die Tabelle "parent" felder welche die uid jeweils vom Vater-Element 
speichert.
So entsteht eine Baumstruktur.

Ich habe nun im Model das property:
/**
* answers
*
* @var 
\TYPO3\CMS\Extbase\Persistence\ObjectStorage<\AFM\Vsfmailforum\Domain\Model\Vsfmailforum>
* @cascade remove
*/
protected $answers = NULL;

protected function initStorageObjects() {
        $this->answers = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage();
}


und im TCA versuche ich es wie folgt zu laden:

'answers' => array(
        'exclude' => 0,
        'label' => 'answers',
        'config' => array(
                'type' => 'inline',
                'foreign_table' => 'mailforum',
                'foreign_field' => 'parent',
                'maxitems' => 9999,
                'appearance' => array(
                        'collapseAll' => 0,
                        'levelLinksPosition' => 'top',
                        'showSynchronizationLink' => 0,
                        'showPossibleLocalizationRecords' => 0,
                        'useSortable' => 0,
                        'showAllLocalizationLink' => 0
                ),
        ),
)

außerdem nehme ich noch im typoscript ein mapping vor:

model_xyz {
 mapping {
   ...
   columns {
     content.mapOnProperty = content
     ...
   }
 }
}

jedoch nimmt er die id in der parent spalte als child id.

Es sollte aber eigentlich das parent element alle child elemente in 'answers' 
laden die in parent die entsprechende id haben.


gibt es da eine lösung?


Schon einmal vielen Dank für jeden hinweis.
_______________________________________________
TYPO3-german mailing list
TYPO3-german@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german

Antwort per Email an