[TYPO3-mvc] Mapping fe_users table

Alex Bailey vile at planet-generals.de
Fri May 7 09:51:20 CEST 2010


Hey guys :)
I'm having a mapping problem which just drives my insane. I know it has 
been discussed often on this newsgroup and I really went through all the 
threads and tried almost anything. The thing I can't get to work is 
mapping a model (Tx_MyExtension_Domain_Model_Employee) on the fe_users 
table. I don't want to extend it or anything just fetch the data.

I tried severall typoscript configurations those 2 didn't work for me:

config{
   tx_smediatimetracker {
     persistence {
      classes {
       Tx_SmediaTimetracker_Domain_Model_Employee {
        mapping {
         tableName = fe_users
         recordType = Tx_SmediaTimetracker_Domain_Model_Employee
         }
        }
      }
    }
  }
}

config {
   tx_extbase {
     persistence {
       classes {
         Tx_SmediaTimetracker_Domain_Model_Employee {
           mapping {
             tableName = fe_users
           }
         }
       }
     }
   }


Model:

class Tx_SmediaTimetracker_Domain_Model_Employee extends 
Tx_Extbase_Domain_Model_FrontendUser {

     /**
      * username
      * * @var string
      */
     protected $username;

//getter setter

Repository:

class Tx_SmediaTimetracker_Domain_Repository_EmployeeRepository extends 
Tx_Extbase_Domain_Repository_FrontendUserRepository

Ext_tables:

t3lib_div::loadTCA('fe_users');



If anyone could give me a little advice if there's something wrong I'd 
be really glad :(

Best regards

Alex


More information about the TYPO3-project-typo3v4mvc mailing list