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

Check for uninitialized group #591

Merged
merged 2 commits into from Feb 17, 2022
Merged

Check for uninitialized group #591

merged 2 commits into from Feb 17, 2022

Conversation

core23
Copy link
Member

@core23 core23 commented Feb 17, 2022

Closes #575

Subject

Allow accessing groups without group feature

@core23 core23 added this to the 2.0.1 milestone Feb 17, 2022
@core23 core23 added the Bug label Feb 17, 2022
@core23
Copy link
Member Author

core23 commented Feb 17, 2022

I think I could reproduce your case. Can you please check this @seizan8?

@core23 core23 merged commit 7737036 into nucleos:2.0.x Feb 17, 2022
@core23 core23 deleted the check-uninit branch February 17, 2022 21:25
@seizan8
Copy link

seizan8 commented Feb 21, 2022

Yes, seems to work fine now. I still don't understand why groups property is null though.
Thanks

@core23
Copy link
Member Author

core23 commented Feb 21, 2022

Doctrine does not use constructors for entity creation, so the property does not have a valid default value.

@seizan8
Copy link

seizan8 commented Feb 21, 2022

So.... the property is not hydrated properly or what?

If I load any other entity they have an empty ArrayCollection set. So either the constructor has to be called or an empty ArrayCollection was set with a setter.

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

Successfully merging this pull request may close these issues.

None yet

2 participants