-
-
Notifications
You must be signed in to change notification settings - Fork 495
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
Turning validate off on EntityManager Population should not trigger invalidPropertyName Error #5043
Comments
What is My guess is its coming from the EM, not entity loader. FWIW this options is rather internal. |
Actual stack trace
modified to suite example:
|
Sorry, i also realised i forgot to answer what entity would be. entity could be either Child1 or Child2 |
Got it, I think we could allow that in general even without the flag, it's just about checking the root entity metadata in there. |
As in expanding the names it checks for by starting from the Base entity getting all possible property names? |
Describe the bug
I have a polymorphic schema, which may or may not have a property i'd like to be populated. I've turned validation off when using
this.em.populate
however I'm still receiving invalidPropertyName errors.Reproduction
What driver are you using?
@mikro-orm/mongodb
MikroORM version
6.0.0-dev.284
Node.js version
20
Operating system
Mac
Validations
The text was updated successfully, but these errors were encountered: