Skip to content

Example of Ecto error on preloading belongs_to associations for embedded schemas

License

Notifications You must be signed in to change notification settings

merqlove/some_ecto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SomeEcto

Example of Ecto error on preloading belongs_to associations for embedded schemas:

  1) test preload for embed changeset with valid attributes (SomeEctoTest)
     test/some_ecto_test.exs:17
     ** (MatchError) no match of right hand side value: %SomeEcto.Patterson{age: nil, first_name: "some content", id: "a337aa63-b9ef-4e3b-ac8d-c5166767259f", last_name: "some content", party: #Ecto.A
ssociation.NotLoaded<association :party is not loaded>, party_id: 33}
     stacktrace:
       test/some_ecto_test.exs:27: (test)

Installation

If available in Hex, the package can be installed as:

  1. Add some_ecto to your list of dependencies in mix.exs:
```elixir
def deps do
  [{:some_ecto, "~> 0.1.0"}]
end
```
  1. Ensure someEcto is started before your application:
```elixir
def application do
  [applications: [:some_ecto]]
end
```

About

Example of Ecto error on preloading belongs_to associations for embedded schemas

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages