-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
Nested include directives return all default includes of ORM Entity relationships #37
Comments
I need you to add your sample code and the way you are running |
Here you go. I have an ORM object that has a m-1 relationship and it's memento defined like this. AssociatedGarage.cfc (all of the standard props are excluded for brevity)
I'm running an HQL query and then looping over the result and calling getMemento() on each object individually.
|
Will get on this and test away |
Ok, do you happen to have |
@stoked74 Did you see my message. If you have auto orm includes then it will try to auto include all properties for all ORM entities that have NO default includes. You posted your default includes for the AssociatedGarage entity, but not for the Garage entity. |
This is still an issue and also applies to Lucee. |
@lmajano Came here to report I am seeing the same behavior when using Quick entities as well.
The above code returns the entire It also happens when using memento profiles as well, just in case that is important information. |
I can't replicate this can ypou assist me @homestar9 |
Yes, I will try to assemble a sample repo to help replicate the issue. |
What are the steps to reproduce this issue?
What happens?
The entire role memento is returned. (this.memento is also defined on the role object)
What were you expecting to happen?
I'm expecting an object that only contains the id property.
{id: 1}
Any logs, error output, etc?
No
Any other comments?
In my case role is a hibernate relationship. I am using CBORM. Setting ormAutoIncludes true or false doesn't seem to make a difference.
What versions are you using?
ACF 2021 (most recent patch)
Mementifier 3.3.1+37
The text was updated successfully, but these errors were encountered: