I'm actually writing an extension for an xml export of my pagetree and the content elements. With the following example I've mapped the typo3 "pages" table on my Page model:
# typo3conf/ext/my_publisher/Configuration/TypoScript/setup.txt
# Module configuration
module.tx_mypublisher.persistence.classes {
Tx_MyPublisher_Domain_Model_Page {
mapping {
tableName = pages
recordType = Tx_MyPublisher_Domain_Model_Page
columns {
uid.mapOnProperty = uid
pid.mapOnProperty = pid
sorting.mapOnProperty = sorting
deleted.mapOnProperty = deleted
title.mapOnProperty = title
is_siteroot.mapOnProperty = is_siteroot
}
}
}
}
Now I want to retrieve the pages in my controller...
$pages = $this->pageRepository->findAll();
This function provides me the result of my model table which is empty until now. So I think I need some "initialize" method in my repository that fills my model table, but until now I've no approach how I can solve this.
Has anyone a solution approach for this problem?
I work with Typo3 6.1.1.
Excuse my English i know it's not the best