[TYPO3-mvc] fetching data from pages table

Jochen Rau jochen.rau at typoplanet.de
Tue Mar 2 12:00:14 CET 2010


Hi.

On 01.03.10 15:50, Michael Staatz wrote:
> I have tried it with an
> - Classes/Domain/Model/Pages.php
> class Tx_Myextension_Domain_Model_Pages extends ... {}

In general you should use single form for Domain Objects (just style): 
Page instead of Pages.

Do you extend the right class of extbase?

class Tx_Myextension_Domain_Model_Pages extends 
Tx_Extbase_DomainObject_AbstractEntity

> - Classes/Domain/Repository/PagesRepository.php
> class Tx_Myextension_Domain_Repository_PagesRepository extends ...{}
> - in the setup.txt of my extension i added:
> config.extbase.persistance.classes {
> Tx_Myextension_Domain_Model_Pages {
> mapping{
> tableName = pages
> }
> }
> }

The word "persistance" should be spelled "persistence".

Regards
Jochen


More information about the TYPO3-project-typo3v4mvc mailing list