googleapis / googleapis/ruby-spanner-activerecord

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

Aperta
#192 3 commenti 0 reazioni 1 assegnatario Assegnata a @olavloite Vedi su GitHub
api: spanner priority: p2 type: bug
Lingua principale
Ruby
Stelle
105
Fork
37
Merge medio
10h 2m
PR unite (30g)
5

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.