Issue Bug Closed

#83649Page model localization

ondro no-lastname-given 01/23/18, 15:43 updated 02/27/20, 14:47

Description

I have custom page type called Magazin

Vendor\DwPageTypes\Domain\Model\Magazine {
        mapping {
          tableName = pages
          recordType = {$PAGE_TYPE_MAGAZIN}
          columns {
            magazine_date.mapOnProperty = date
            magazine_intro_text.mapOnProperty = introText
            magazine_categories.mapOnProperty = categories
            magazine_digi_news_export.mapOnProperty = digiNewsExport
          }
        }
      }

And magazin model and repository

class Magazine extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity {...}
class MagazineRepository extends \TYPO3\CMS\Extbase\Persistence\Repository {...}

Than I have FE plugin with magazine listing.
In default language all works fine. But when I create page localization (pages_language_overlay) Magazine model has not set `_languageUid` property.
And I need to list only Magazines which are translated, but all magazines are listed (including not translated).

I’ve also set

config.sys_language_mode = strict

but with no effect

Is it a bug or I am out of topic :)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.