mirror of
https://github.com/ash-project/ash.git
synced 2024-09-20 13:33:20 +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,
|
||||
name: relationship.source_field,
|
||||
type: relationship.field_type,
|
||||
allow_nil?: not relationship.required?,
|
||||
writable?: false,
|
||||
private?: true,
|
||||
primary_key?: relationship.primary_key?
|
||||
|
|
Loading…
Reference in a new issue