public function setupFieldAssociations($fields, $table, $fieldConditions, $strategy)
    {
        $config = $this->getConfig();

        $this->_table->hasMany($config['translationTable'], [
            'className' => $config['translationTable'],
            'foreignKey' => 'id',
            'strategy' => $strategy,
            'propertyName' => '_i18n',
            'dependent' => true,
        ]);
    }
public function setupFieldAssociations($fields, $table, $fieldConditions, $strategy)
    {
        $config = $this->getConfig();

        $this->_table->hasMany($config['translationTable'], [
            'className' => $config['translationTable'],
            'foreignKey' => 'id',
            'strategy' => $strategy,
            'propertyName' => '_i18n',
            'dependent' => true,
        ]);
    }
public function setupFieldAssociations ( $ fields , $ table , $ fieldConditions , $ strategy ) { $ config = $ this -> getConfig ( ) ; $ this -> _table -> hasMany ( $ config [ 'translationTable' ] , [ 'className' => $ config [ 'translationTable' ] , 'foreignKey' => 'id' , 'strategy' => $ strategy , 'propertyName' => '_i18n' , 'dependent' => true , ] ) ; }
Create a hasMany association for all records

Don't create a hasOne association here as the join conditions are modified
in before find - so create/modify it there

@param array $fields - ignored
@param string $table - ignored
@param string $fieldConditions - ignored
@param string $strategy the strategy used in the _i18n association

@return void
Create a hasMany association for all records