[TYPO3-dev] Repository class not injected correctly
Dirk Ho
dirk_studivz at web.de
Sun Aug 3 20:51:47 CEST 2014
I'm very sorry for asking again:
@var
\TYPO3\CMS\Extbase\Persistence\ObjectStorage<\DH\Forum\Domain\Model\Forum>
What's the name of the variable?
$forum?
$forums?
I don't know if in this case a plural "s" is added to the variable name
or if just the singular of the model is used.
Am 02.08.2014 22:55, schrieb Ivano Luberti:
> For what I see in the comment of $category declaration you have:
>
>> * @var \TYPO3\CMS\Extbase\Persistence\ObjectStorage<>
>
> but you should have
>
>> * @var \DH\Forum\Domain\Model\Category >
>
> because a forum can have only one category
>
> While in CategoryModel you should have
>
>> * @var
>> \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\DH\Forum\Domain\Model\Forum
>>>
>
> to list all forums for a given Cateogry
>
> if you don't specify the type Extbase cannot determine it.
>
>
> I think that for initial development you should use Extension Builder:
> it generates automatically this kind of things and you could learn a lot
> browsing the code.
> Roundtripping can be cumbersome expecially once you start editing
> templates, typoscript and other configuration fields but the initial
> development works well especially for newbies.
>
>
More information about the TYPO3-dev
mailing list