NotFound ignored when polymorphic

We are using unidirectional @Any to create polymorphic association.
As per definition there is no fk constraint in place, so it is possible to end up with broken records.
However, we tried to ignore these with @NotFound IGNORE but to no avail. Exception is still thrown.

Is it possible to have polymorphic association and that broken records are returned with null references or skipped. It is very unpleasent to have any search or getAll broken due to any record being invalid.


It’s currently not possible, but you can create a feature/improvement request for this on our issue tracker.

You should only encounter an exception when trying to load the proxy which is created for the any association, so it should be possible for you to workaround this problem by safe guarding the initialization of the proxy with a try-catch.