php - Typo3 6.2.3 fe_users mapping recordType issue -


i trying map fe_users table in typo3 version 6.2.3.

config.tx_extbase{     persistence{         classes{             typo3\cms\extbase\domain\model\frontenduser {         mapping.recordtype >             }             typo3\checkuserprofile\domain\model\checkuser {                 mapping {                     tablename = fe_users                     #recordtype = tx_checkuserprofile_checkuser  -> deleted                 }             }          }     } } 

however if user not in tx_checkuserprofile_checkuser recordtype repository won't find tried findall() , findbyproperty different properties , nothing, recortype set somewhere default required or how map recordtype won't needed?

the following solution works!

one hint typo3 coding guidelines: don't use typo3 namespace in extensions!!!! instead of typo3\checkuserprofile\domain\model\checkuser should use yourname\checkuserprofile\domain\model\checkuser

config.tx_extbase{     persistence{         classes{             typo3\cms\extbase\domain\model\frontenduser {                 #mapping.recordtype >                 subclasses {                     typo3\checkuserprofile\domain\model\checkuser = typo3\checkuserprofile\domain\model\checkuser                 }             }             typo3\checkuserprofile\domain\model\checkuser {                 mapping {                     tablename = fe_users                     #recordtype = tx_checkuserprofile_checkuser  -> deleted                     recordtype >                 }             }          }     } } 

Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -