Search code examples
extbasetypo3-7.6.xtx-news

Not the right table in repository query (upgrade for LTS 7.6)


I'm upgrading a TYPO3 LTS 6.2 to LTS 7.6 now.

I have an extension (extExtended) that extended News extension with new fields and new actions. Everything is working great (BE, FE and DB).

I made an other extension(extSearch) that extended News with search functions.

My search actions return nothing because the database table in the query is not the one of the News. It's looking for a table named after the extSearch extension.

So extExtended->EventController extends GeorgRinger\News\Controller, extExyended->NewsRepository extends GeorgRinger\News\Domain\Repository\NewsRepository

extSearch->SearchController extends GeorgRinger\News\Controller

What am I missing?


Solution

  • I place this TypoScript in my extExtended setup and it works

    config.tx_extbase {
        persistence {
            Vendor\extensionKey\Domain\Model\News {
                mapping {
                    tableName = tx_news_domain_model_news
                }
            }
        }
    }