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
Create with includes #1838
Comments
Could you provide a self contained test case? |
options = {include: [model: A as: a ]} |
Your test case doesn't really include any reloads. Also include isn't supported for create afaik. |
Although it should work since build supports includes. |
Sorry, actually it is not reload, it is include. So in options there is include, which should load A into B as 'a', after B is created. |
That is not supported, so changing issue to a feature request. |
The API reference for create() suggests that the Is the api reference incorrect ? |
@bulkan yes and no. The option is mentioned because it's supported by |
Sorry I missed this notification and see it today, thank you. |
+1 on this |
@mickhansen This can be closed now, right? |
Yes I think so.
|
two objects A, B, one-on-one relationship. create A first and create B right after with include as options to reload A in B, however it does not work. Have to use find to populate the relationship.
The text was updated successfully, but these errors were encountered: