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

[bug] Typo 13.2.1 | news dev-12-13 | Extending Domain Models #2527

Closed
thomasrawiel opened this issue Sep 13, 2024 · 1 comment
Closed

[bug] Typo 13.2.1 | news dev-12-13 | Extending Domain Models #2527

thomasrawiel opened this issue Sep 13, 2024 · 1 comment

Comments

@thomasrawiel
Copy link

thomasrawiel commented Sep 13, 2024

Bug Report

Using the dev-12-13 branch

Has there been a change in how to extend the News Models?

I'm trying to update EXT:news_seo for v13, but I get the error Call to undefined method GeorgRinger\News\Domain\Model\NewsDefault::isRobotsIndex()

The cache file is correctly written and contains the function, however it seems it's somehow not loaded in the frontend:
In news-seo's NewsDetailActionEventListener.php the error Call to undefined method GeorgRinger\News\Domain\Model\NewsDefault::isRobotsIndex() is thrown because the object misses the extended properties,

News-Object in Detail View:

image

compared with v12:
image

Both screens taken with xdebug in news-seo/Classes/EventListener/NewsDetailActionEventListener.php:25

Environment

  • TYPO3 version(s): 13.2.1
  • news version: branch dev-12-13
  • Is your TYPO3 installation set up with Composer (Composer Mode): yes
  • OS: ddev

Additional context
May be related to #2512

Here's what I changed in news-seo: georgringer/news_seo#23

composer.json excerpt:

"require": {
	"georgringer/news": "dev-12-13 as 12.99.99",
	"georgringer/news-seo": "dev-main",
	"typo3/cms-backend": "^13.1",
	"typo3/cms-belog": "^13.1",
...
@thomasrawiel
Copy link
Author

Has been fixed with 16c9970

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