forked from petejkim/factory-lady
-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
afterCreate() in Sub-Object Creates Weird Error #135
Comments
for some reasons in case when factory-girl build schema doesn't match DB-schema, FG doesn't throw error. It just returns undefined. So guys who still uses this project : make sure your build schema fits to DB schema. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We have a pretty denormalized schema, so we need to make a LOT of association calls to create a single object... When I get to the 3rd association, I get this error by simply defining
afterCreate()
:TypeError: Cannot read property 'get' of undefined
in my 3rd-level factory.Here's my example:
We're using
Sequelize
as our ORM as well. I tried Googling for answers, but couldn't find any solutions.The text was updated successfully, but these errors were encountered: