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

Henjo Hoeksma me at henjohoeksma.nl
Wed Jan 4 22:43:59 CET 2012


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