coldbox-modules / quick

A ColdBox ORM Engine
https://quick.ortusbooks.com
MIT License
23 stars 19 forks source link

Connected entities fail if more than 2 are connect with hasManyThrough Error building: HasMany@quick -> java.lang.StackOverflowError #238

Open GunnarLieb opened 9 months ago

GunnarLieb commented 9 months ago

Please see: https://github.com/akitogo/quicktest

getInstance("user")
            .with("usergroup.permission.extendedpermission")
            .has("usergroup.permission.extendedpermission")

and I use has, it works with two like has("usergroup.permission") but as soon I have three (see above) I get (bearbeitet) an Error building: HasMany@quick -> java.lang.StackOverflowError

elpete commented 3 months ago

Please try with Quick 8+ as the hasManyThrough logic has been completely reworked.

GunnarLieb commented 2 months ago

Hello @elpete, I think I missed your comment so apologies for my late reply.

Just updated to lastest Coldbox (7.3.0) and Quick (9.0.1), the error remains the same.

GunnarLieb commented 2 months ago

Please check repo https://github.com/akitogo/quicktest which contains migrations (create and seeds) to reproduce