googleapis / googleapis/ruby-spanner-activerecord

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

Đang mở
#192 3 bình luận 0 reaction 1 người được giao Được giao cho @olavloite Xem trên GitHub
api: spanner priority: p2 type: bug
Ngôn ngữ chính
Ruby
Star
105
Fork
37
Merge trung bình
10 giờ 2 phút
Pull request đã merge (30 ngày)
5

Mô tả

#### 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)`

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.