[TYPO3-mvc] Map table as model
    Franz Koch 
    typo3.RemoveForMessage at elements-net.de
       
    Wed Mar  2 11:33:05 CET 2011
    
    
  
Hey,
> I would like to have in my ext an model "BeUser"
>
> So I did this ts in my setup.txt
>
> plugin.tx_ext {
> persistence {
> storagePid = 5
> classes {
> Tx_Ext_Domain_Model_BeUser {
> mapping {
> tableName = be_users
> recordType = Tx_Ext_Domain_Model_BeUser
> }
> }
> }
> }
> }
>
> I`ve created a model and repository but I get nothing when i user
> $berepo->findAll()
do your be_user records actually have a type field? Because you're 
refering to a special recordType. If not, drop the recordType definition 
and you should get objects.
And you have to disable the check for storagePages, because BeUsers are 
stored on PID 0 which might be a issue for the storagePid check.
-- 
kind regards,
Franz Koch
    
    
More information about the TYPO3-project-typo3v4mvc
mailing list