Skip to content

Query: ExecuteDelete on entity type owning other entities do not work #28573

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
smitpatel opened this issue Aug 2, 2022 · 4 comments
Closed

Comments

@smitpatel
Copy link
Contributor

No description provided.

@roji
Copy link
Member

roji commented Aug 2, 2022

Seems like either #28521 or #28520, no?

@smitpatel
Copy link
Contributor Author

This stems from a different code path. Suppose your owned entities are mapped to a different table then delete should be fine. But currently it would fail because we check for entity shaper in projection but for owned (or non-owned scenario in AutoInclude), we will get IncludeExpression and fail with non-entity projection. But those projections are added by us and user cannot control for owned entity.

@roji
Copy link
Member

roji commented Aug 3, 2022

Makes sense, thanks!

@smitpatel
Copy link
Contributor Author

Fixed in #29023

@smitpatel smitpatel modified the milestones: Backlog, 7.0.0 Sep 14, 2022
@ajcvickers ajcvickers modified the milestones: 7.0.0, 7.0.0-rc2 Sep 14, 2022
@ajcvickers ajcvickers modified the milestones: 7.0.0-rc2, 7.0.0 Nov 5, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

3 participants