[TYPO3-mvc] findByUid for FrontendUserGroupRepository and FrontendUserRepository not works

Valery Romanchev [typo3lab.ru] romanchev at typo3lab.ru
Sun Aug 15 17:07:48 CEST 2010


14.08.2010 19:09, Valery Romanchev [typo3lab.ru] пишет:
> Hi All
>
> I am trying to make user registration with extbase.
>
> The current problem is that findByUid for FrontendUserGroupRepository
> not works in Controller of my extension. TYPO3 4.4.2, extbase 1.3.0-devel
>
> $userGroupRepository =
> t3lib_div::makeInstance('Tx_Extbase_Domain_Repository_FrontendUserGroupRepository');
>
> $userGroup = $userGroupRepository->findByUid(1);
> var_dump($userGroup); // Shows null

The problem become clear.
Thanks to Andreas Wolf in topic "FrontendUserRepository Broken In 
Trunk?" in this list:

"For trunk you have to set a value for
tx_extbase_type in fe_users table. Otherwise the record is of type
"undefined" and thus not found by the repository."


-- 
Valery Romanchev
web-developer
TYPO3 Laboratory, Moscow, Russia
http://www.typo3lab.ru


More information about the TYPO3-project-typo3v4mvc mailing list