mirror of
https://github.com/ash-project/ash.git
synced 2024-09-20 21:43:02 +12:00
fix: derived belongs_to attributes are required if their parent is
This commit is contained in:
parent
a7c0b67318
commit
8fd26d66ca
1 changed files with 1 additions and 0 deletions
|
@ -23,6 +23,7 @@ defmodule Ash.Resource.Transformers.BelongsToAttribute do
|
||||||
case Transformer.build_entity(@extension, [:attributes], :attribute,
|
case Transformer.build_entity(@extension, [:attributes], :attribute,
|
||||||
name: relationship.source_field,
|
name: relationship.source_field,
|
||||||
type: relationship.field_type,
|
type: relationship.field_type,
|
||||||
|
allow_nil?: not relationship.required?,
|
||||||
writable?: false,
|
writable?: false,
|
||||||
private?: true,
|
private?: true,
|
||||||
primary_key?: relationship.primary_key?
|
primary_key?: relationship.primary_key?
|
||||||
|
|
Loading…
Reference in a new issue