/** * @return $this */ public function getMessages() { return $this->hasMany(Message::className(), ['id' => 'id'])->indexBy('language'); }