Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extending model - Exception: Could not get value of property #2565

Open
peterbenke opened this issue Nov 19, 2024 · 0 comments
Open

Extending model - Exception: Could not get value of property #2565

peterbenke opened this issue Nov 19, 2024 · 0 comments

Comments

@peterbenke
Copy link

Bug Report

Current Behavior
On extending the EXT:news the following exception appears:

#1546632293 RuntimeException
Could not get value of property "GeorgRinger\News\Domain\Model\NewsDefault::relatedLinks", make sure the property is either public or has a getter getRelatedLinks(), a hasser hasRelatedLinks() or an isser isRelatedLinks().

Environment

  • TYPO3 version: 12.4.23
  • news version: 12.0.1
  • Is your TYPO3 installation set up with Composer (Composer Mode): yes
  • OS: Debian GNU/Linux 11

Possible Solution
Model properties should be nullable, e.g.:

/** @var ObjectStorage<Link>|null */
#[Lazy]
protected ?ObjectStorage $relatedLinks = null;

See also:
https://docs.typo3.org/m/typo3/reference-exceptions/main/en-us/Exceptions/1546632293.html

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant