googleapis / googleapis/ruby-spanner-activerecord

Cannot use ActiveRecord helper to create associated model from parent model record

オープン
#192 コメント 3 件 リアクション 0 件 担当者 1 名 @olavloite に割り当て済み GitHub で見る
api: spanner priority: p2 type: bug
主要言語
Ruby
スター
105
フォーク
37
平均マージ
10時間 2分
マージ済み PR(30日)
5

説明

#### Environment details

- Programming language: Ruby
- OS: Mac OS
- Language runtime version: 3.1.2
- Package version: 1.2.2

#### Steps to reproduce

1. Set up a rails app with a model that has_many of another model
2. Attempt to create a record of the child model from a record of the parent model with the following syntax: `parent_model.child_models.create()`

Whenever I do this I get this error: `google-cloud-ruby/google-cloud-spanner/lib/google/cloud/spanner/convert.rb:120:in field_for_object': ArgumentError: Cannot determine type for nil values. (ActiveRecord::StatementInvalid)`

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。