[TYPO3-mvc] magic functions findByProperty/countByProperty not working in FrontendUserGroupRepository?

Sebastian Schreiber me at schreibersebastian.de
Thu Nov 26 09:22:45 CET 2015


Hi Genser,
did you set your StoragePid??? plugin.tx_myext.persistence.storagePid = PID

Sebastian



Am 26.11.2015 um 00:12 schrieb Genser:
> I am trying to programmatically create a Frontend User Group, if it
> doesn't already exist, but the following code creates a new Group every
> time:
> 
> $group_title = 'Group1';
> if ($this->frontendUserGroupRepository->countByTitle($group_title) == 0) {
> $fe_group =
> \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('\\TYPO3\\CMS\\Extbase\\Domain\\Model\\FrontendUserGroup',
> $group_title);
>   $this->frontendUserGroupRepository->add($fe_group);
> }
> 
> Can someone give me a pointer, where I went wrong?
> 
> THX
> _______________________________________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc


-- 
Sebastian Schreiber
(Medieninformatiker B.Sc.)
(TYPO3 Certified Integrator)

Paul Nießen Straße 58
D-50969 Köln

T  0221 677 88 541
M  0176 431 05 790

Skype schreibersebastian.de

me at schreibersebastian.de
www.schreibersebastian.de

Steuernummer: 219 / 5302 / 3123


More information about the TYPO3-project-typo3v4mvc mailing list