[TYPO3-mvc] fe_users->getUsergroup() is empty

Martin Ernst ernst at alto.de
Thu Jan 5 12:46:40 CET 2012


Okay, I found the reason. I had forgotten to set the extbase_type for my 
usergroups. Now that I set them, all works fine.

Tanks
Martin

Am 04.01.2012 22:43, schrieb Henjo Hoeksma:
> StoragePid ?
> Correct mapping in TS ?
>
> Kind regards,
>
> Henjo
>
> Problems are small because we learned how to deal with them.
> Problems are big because we need to learn how to deal with them.
>
>
> On Wed, Jan 4, 2012 at 16:33, Martin Ernst<ernst at alto.de>  wrote:
>
>> Hello,
>>
>> I have extended the fe_users table in my extension with a customer object
>> model. I want to get the usergroup(s) by $this->getUsergroup() in that
>> model.
>>
>> Whatever I do and regardless of the number of FE usergroups a customer is
>> in (in fact each customer is in at least 1 group), the usergroups
>> ObjectStorage I get is always empty.
>>
>> The getter looks like
>>
>>         public function isTest(){
>>                 $groups = $this->getUsergroup();
>>                 ...
>>         }
>>
>> $groups->count() is always 0 while $this->getUsername() gets the correct
>> username.
>>
>> Any hints very welcome.
>> Martin
>> ______________________________**_________________
>> TYPO3-project-typo3v4mvc mailing list
>> TYPO3-project-typo3v4mvc@**lists.typo3.org<TYPO3-project-typo3v4mvc at lists.typo3.org>
>> http://lists.typo3.org/cgi-**bin/mailman/listinfo/typo3-**
>> project-typo3v4mvc<http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc>
>>



More information about the TYPO3-project-typo3v4mvc mailing list