Eager creation failure for associations #608
Labels
f: associations
the associations feature in pop
s: triage
Some tests need to be run to confirm the issue
Milestone
Description
When try to use
db.Eager().ValidateAndCreate(user)
to create a user and underlyinghas_many
books, it succeeded for the first time when books table is empty, but failed to save the books in following creations.Steps to Reproduce the Problem
users
andbooks
tablesdb.Eager().ValidateAndCreate(user)
to create first user and underlyinghas_many
books: successdb.Eager().ValidateAndCreate(user)
to create more users and underlyinghas_many
books: failureExpected Behavior
Should always be able create the users and associated books via
db.Eager().ValidateAndCreate(user)
Actual Behavior
It succeeded for the very first creation, but failed for following creations.
Info
OS: Mac
Pop: v5.3.1
Buffalo: N/A
More details could be found in the PR #607
@markbates @stanislas-m Could you pls review the PR?
The text was updated successfully, but these errors were encountered: