Skip to content

Commit

Permalink
[BUGFIX] Category parent property should be typed with LazyLoadingProxy
Browse files Browse the repository at this point in the history
- Category model property parent should be strictly typed along with LazyLoadingProxy otherwise it will throw error
  • Loading branch information
hojalatheef committed Jan 17, 2024
1 parent 6fe8cfd commit 9bfe374
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Classes/Domain/Model/Category.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class Category extends AbstractEntity
protected string $description = '';

#[Lazy]
protected ?Category $parent = null;
protected Category|LazyLoadingProxy|null $parent = null;

public function getTitle(): string
{
Expand Down
5 changes: 5 additions & 0 deletions Documentation/ChangeLog/Index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
ChangeLog
=========

Version 7.0.1
=============

* BUGFIX: Category parent property lazy loading with LazyLoadingProxy type

Version 7.0.0
=============

Expand Down
2 changes: 1 addition & 1 deletion Documentation/Settings.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[general]

project = Yellowpages2
version = 7.0.0
version = 7.0.1
release = 7.0
copyright = by jweiland.net

Expand Down
2 changes: 1 addition & 1 deletion ext_emconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
'author_email' => '[email protected]',
'author_company' => 'jweiland.net',
'state' => 'stable',
'version' => '7.0.0',
'version' => '7.0.1',
'constraints' => [
'depends' => [
'typo3' => '12.4.0-12.4.99',
Expand Down

0 comments on commit 9bfe374

Please sign in to comment.