Open
Description
Bug Report
Prerequisites
- Can you reproduce the problem on TYPO3 v9.5 LTS
- Can you reproduce the problem on TYPO3 v10.4 LTS
- Can you reproduce the problem on TYPO3 v11.x
- Did you perform a cursory search to see if your bug or feature is already reported?
Description
When trying to access the parent of one single category of an post, an error occures. Category has ORM/lazy, the Category->getParent() function tries to return an lazy loading proxy object but the allowed return types are null and Category.
Steps to Reproduce
Try to access the parent of an category assigned to a blog post
<f:for each="{post.categories}" as="category" iteration="iterator">
{category.parent.title}
</f:for>
Expected behavior: [What you expected to happen]
Throw no error and return parent category values
Actual behavior: [What actually happened]
(1/1) TypeError
Return value of T3G\AgencyPack\Blog\Domain\Model\Category::getParent() must be an instance of T3G\AgencyPack\Blog\Domain\Model\Category or null, instance of TYPO3\CMS\Extbase\Persistence\Generic\LazyLoadingProxy returned
Versions
t3g/blog 12.0.2
Metadata
Metadata
Assignees
Labels
No labels