Skip to content
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() not fetching relations. Shouldn't it use insertGraphAndFetch() #155

Open
bslayton opened this issue Jul 23, 2021 · 1 comment
Open

Comments

@bslayton
Copy link

bslayton commented Jul 23, 2021

_create(), which uses internal class method _getCreatedRecords() is not fetching relations. However, _update() and _patch() do fetch relations but is using upsertGraphAndFetch().

Does it make sense that _create() should use insertGraphAndFetch(), similarly to patch/update? Is there a reason I’m not seeing why _getCreatedRecords() is used instead of insertGraphAndFetch()?

@dekelev
Copy link
Member

dekelev commented Jul 25, 2021

Hi @bslayton, I have no idea, but Maybe @mdmitry01 can answer this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants