- Default value for polymorphic list of embeds is
[]
instead ofnil
(followingembeds_many/3
)
- Use
polymorphic_embeds_one/2
andpolymorphic_embeds_many/2
macros instead offield/3
- Support IDs
- Make sure that every existing polymorphic
embedded_schema
contains the setting@primary_key false
- Add
polymorphic_embed_inputs_for/2
for displaying forms in LiveView - Add
polymorphic_embed_inputs_for/3
for displaying forms in Phoenix templates without needing to specify the type
- Add
PolymorphicEmbed.types/2
function returning the possible types for a polymorphic field
- Add
:nilify
and:ignore
for:on_type_not_found
option
- Support the SQLite3 Ecto adapter
ecto_sqlite3
- Fix errors in form for
embeds_one
nested intopolymorphic_embed
- Refactor
PolymorphicEmbed.HTML.Form
- Add
traverse_errors/2
- Support custom changeset functions through
:with
option
- Add
:required
option
- Support custom type field
- Support list of polymorphic embeds
- Force
:on_replace
option to be explicitly set