Hi!
I'm trying to make a MN relation so I'm extending AbstractAdvancedRelation:
class AnimalResults extends AbstractAdvancedRelation
but I get errors like:
Typed property HDNET\Autoloader\Domain\Model\AbstractAdvancedRelation::$tablenames must not be accessed before initialization
To avoid this errors I have to declare $tablenames again in class AnimalResults and give it a default value:
Hi! I'm trying to make a MN relation so I'm extending AbstractAdvancedRelation:
class AnimalResults extends AbstractAdvancedRelation
but I get errors like:Typed property HDNET\Autoloader\Domain\Model\AbstractAdvancedRelation::$tablenames must not be accessed before initialization
To avoid this errors I have to declare $tablenames again in classAnimalResults
and give it a default value:Same for
$sortingForeign
and$ident
.I'm using PHP 7.4 and TYPO3 10 LTS.
Indeed it also works if I make these edits of the variables declarations directly in
AbstractAdvancedRelation
, at least in my installation.Is it a bug or am I missing something?