there is a connection
/** * @return \\yii\\db\\ActiveQuery */ public function getUserTacks() { return $this->hasMany(UserTack::class, ['user_id' => 'id']); } /** * @return \\yii\\db\\ActiveQuery */ public function getTacks() { return $this->hasMany(Tack::class, ['id' => 'tack_id'])->viaTable('user_tack', ['user_id' => 'id']); }
Question is it possible to obtain certain properties, for example name of model Tack by working ArrayHelper ? or just foreach