German Velasco
German Velasco
Hi @pyromaniac, I don't know how others might solve this, but here are my thoughts (and I hope I understood your question correctly). It all depends on what qualifies as...
@pyromaniac looking at this again, I think what you might want to do is something like this, ```elixir user = build(:user, id: 1337) build(:comment, user: user) |> insert() ``` That...
I know this has been open for some time, but I also just ran into this issue, so I wanted to add another comment. I think it would make sense...
Hi @zimt28 it's possible that `insert` is accidentally reverting the order of `build_pair`, though it seems strange that it would be doing that. Could you confirm for me what `build_pair(:customer)`...
I just opened https://github.com/thoughtbot/ex_machina/pull/411, which might help with the multi-tenancy issue at the point of calling `insert/3`. I think it makes sense to also have a more global `repo_options` when...
@christianjgreen thanks for opening this issue. I see why that is a bit surprising. `string_params_for/2` turns all the keys of nested structs/maps into strings. Since the ~U sigil is a...
Just revisiting this. I think if we wanted to change how `string_params_for` handles dates, we could do that. I see how the current behavior is surprising. It would be a...
Hi @tlvenn, do you have any sample code that you could past here? I'm not entirely clear on the issue you're running into. Seeing the schemas and factories related to...
@tlvenn thanks for posting that info. I think I'm understanding what you're saying, but if it seems like I'm not, please let me know. I am trying to think of...
Thanks for following up on this @jhonathas. I can see how a callback like that could work. It's actually very similar to an example we have in [ExMachina.Strategy](https://hexdocs.pm/ex_machina/ExMachina.Strategy.html#name_from_struct/1-implementing-callback-functions-with-name_from_struct-1) for when...