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

Entity type is always null when eager loading #16

Closed
ugened47 opened this issue Jul 7, 2021 · 1 comment
Closed

Entity type is always null when eager loading #16

ugened47 opened this issue Jul 7, 2021 · 1 comment

Comments

@ugened47
Copy link

ugened47 commented Jul 7, 2021

Trying this awesome package with Nest but when querying child entities the entityType is always null.

SELECT "Proposal"."id" AS "Proposal_id", "Proposal"."uuid" AS "Proposal_uuid", "Proposal"."refNodeJson" AS "Proposal_refNodeJson", "Proposal"."content" AS "Proposal_content", "Proposal"."contentJson" AS "Proposal_contentJson", "Proposal"."createdAt" AS "Proposal_createdAt", "Proposal"."updatedAt" AS "Proposal_updatedAt", "Proposal"."entityId" AS "Proposal_entityId", "Proposal"."entityType" AS "Proposal_entityType" FROM "proposal" "Proposal" WHERE "Proposal"."entityId" = $1 AND "Proposal"."entityType" = $2 -- PARAMETERS: [1,null]

Every repository is extended from AbstractPolymorphicRepository

Is there any workaround?

Thank you.

@bashleigh
Copy link
Owner

What does your relationship decorators look like?

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