Ecto and embeds_many with different struct types

33 views
Skip to first unread message

David Simmons

unread,
May 27, 2016, 2:54:50 AM5/27/16
to elixir-lang-talk
Hi All.

does anyone know if it is possible to use embeds_many with different struct types. I have a feature where I'd like to use embeds_many but the actual structs are of different types.

many thanks.

Dave

José Valim

unread,
May 27, 2016, 3:17:16 AM5/27/16
to elixir-l...@googlegroups.com
It is not possible currently. You can use {:array, :map} though to store whatever you want.



José Valim
Skype: jv.ptec
Founder and Director of R&D

--
You received this message because you are subscribed to the Google Groups "elixir-lang-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-ta...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-talk/75cf53b9-010d-4abd-837f-c96d4678d379%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

David Simmons

unread,
May 27, 2016, 4:48:06 AM5/27/16
to elixir-lang-talk, jose....@plataformatec.com.br
Thanks Jose - I'll do some digging.

cheers

dave 
Reply all
Reply to author
Forward
0 new messages