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

Martin Ernst ernst at alto.de
Thu Jan 5 11:07:04 CET 2012


The customer objects and the usergroup objects are stored on the same 
pid (wich is not the root).

The mapping should be okay (I rely on extbase, I hope it is correctly 
mapped in/for Tx_Extbase_Domain_Model_FrontendUser. My customer class 
extends the Tx_Extabse_Domain_Model_FrontendUser.

Thanks
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