On Wednesday, December 12, 2018 at 11:55:14 PM UTC-8, Ben Alavi wrote:
>
> Hey Jeremy,
>
> I believe this is a bug:
>
> Example: https://gist.github.com/benalavi/20817b785a08d16912f82ce31afde029
>
> The create works, the update fails.
>
> Both the create and update call validate twice on the one_to_one 
> associated model, validate is only called once for the one_to_many 
> associated model.
>
> During the update the reciprocal association is set when validate is 
> called for the first time, and is nil the second time.
>
> The bug looks like it appeared in 5.10.0, example works in 5.9.0
>
> Getting late so I haven't dug into a fix yet but I thought I'd post it 
> because it looks like it might be the same issue or related to the recent 
> change for one_to_many relationships.
>

Thanks for the reproducible example, this definitely looks like a bug.  
I'll work on a fix right away.

Thanks,
Jeremy

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sequel-talk+unsubscr...@googlegroups.com.
To post to this group, send email to sequel-talk@googlegroups.com.
Visit this group at https://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/d/optout.

Reply via email to