[TYPO3-mvc] setting Usergroup
Johannes C. Schulz - EnzephaloN IT-Solutions
info at enzephalon.de
Tue Jan 17 10:18:09 CET 2012
Hello Claus
Thanks for your answers!
The record_type within the group is set to
Tx_Extbase_Domain_Model_FrontEndUserGroup.
storagePid is set by constants (all objects are stored in one folder: user,
group and my objects):
plugin.tx_psoaaccredit.persistence{
storagePid =
{$plugin.tx_psoaaccredit.persistence.storagePid}
}
Is something more to do in the controller?
Best regards
Johannes
-----Ursprüngliche Nachricht-----
Von: typo3-project-typo3v4mvc-bounces at lists.typo3.org
[mailto:typo3-project-typo3v4mvc-bounces at lists.typo3.org] Im Auftrag von
Claus Due
Gesendet: Dienstag, 17. Januar 2012 10:10
An: TYPO3 v4 MVC project
Betreff: Re: [TYPO3-mvc] setting Usergroup
Hi Johannes,
Shooting from the hip: set the "record type" of your fe_group record to
Tx_Extbase_Domain_Model_FrontendUserGroup and/or make sure you have the
storage page UID set ;)
Cheers,
Claus
On Jan 17, 2012, at 9:56 AM, Johannes C. Schulz - EnzephaloN IT-Solutions
wrote:
> Hello typo3-community
>
> Several problems with my new extensions are solved, some new came.
> The plan is, to add a new feuser. Now it seems to work, instead the
> setting of the usergroup. Therefor I made an instance of
> Tx_Extbase_Domain_Repository_FrontendUserGroupRepository and tried this:
>
> $usergroup =
> $this->usergroupRepository->findByUid($this->settings['accrgroup']);
> //from constants, searching the right usergroup
> $user->setUsergroup($usergroup); //assigning.
>
> But this throws an error, the given object is NULL and not
> Tx_Extbase_Persistence_ObjectStorage.
> How do I right?
>
>
>
> Thanks
>
> Johannes
>
> _______________________________________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4m
> vc
_______________________________________________
TYPO3-project-typo3v4mvc mailing list
TYPO3-project-typo3v4mvc at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
More information about the TYPO3-project-typo3v4mvc
mailing list