public function getImage() { return $this->hasOne(Image::className(), ['id' => 'image_id'])->viaTable(Profile::tableName(), ['user_id' => 'id']); }