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

[BUG] Inheritance fails silently for uninitialized collections #969

Open
ldorigo opened this issue Jul 12, 2024 · 3 comments
Open

[BUG] Inheritance fails silently for uninitialized collections #969

ldorigo opened this issue Jul 12, 2024 · 3 comments

Comments

@ldorigo
Copy link

ldorigo commented Jul 12, 2024

C.f. #965 for an example of where it bit me :-)

For normal documents there is an error message when an uninitialized object is used.

For documents that use inheritance, it looks like it just fails silently (using the baseclass instead of the child classes?)

Copy link
Contributor

This issue is stale because it has been open 30 days with no activity.

@github-actions github-actions bot added the Stale label Aug 12, 2024
@adeelsohailahmed adeelsohailahmed added bug Something isn't working and removed Stale labels Aug 16, 2024
@staticxterm
Copy link

Hi @ldorigo,

I am unable to reproduce with the code provided in #965. Please provide a minimum reproducible example (MRE).

In the Beanie Relations documentation it states that 'BackLink' is only "virtual", it doesn't exist, so it can't be saved to DB.

@adeelsohailahmed I see that you've added the bug label. Do you perhaps have a MRE?

@adeelsohailahmed
Copy link
Contributor

@adeelsohailahmed I see that you've added the bug label. Do you perhaps have a MRE?

Hi @staticxterm, thank you for taking a look into this issue.

I haven't had the time to look into the issue and/or reproduce it myself. I just added the bug label to avoid the issue getting closed by the bot. In hindsight, it was perhaps not the best course of action.

@adeelsohailahmed adeelsohailahmed added action requested and removed bug Something isn't working labels Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants