Bean Populator not working correctly when ORM entity inherits from other

Description

We have abstract entities with the component attribute mappedSuperClass="true".
When using populate() in VirtualEntityService on an ORM entity that extends such an abstract entity and the abstract entity contains foreign keys to other entities we get an error. We have located the problem in \coldbox\system\core\dynamic\BeanPopulator.cfc in the function getRelationshipMetaData(). This method only checks for getMetaData( arguments.target ).properties but doesn't check if there's getMetaData( arguments.target ).extends.properties. Could you please set that right!

Meanwhile is there a way to overwrite core components?

Thanks!

Activity

Show:
Wil de Bruin
November 17, 2015, 11:46 AM

same as this one
https://ortussolutions.atlassian.net/browse/COLDBOX-485

I think it belongs to core, not utilities

Tanja Zogg
November 17, 2015, 11:51 AM

Yes, that's it exactly. I'm watching the issue now. Thanks.

Luis Majano
November 17, 2015, 7:24 PM

I will close tis, since this is for the ColdFusion Builder Utilities

Luis Majano
November 17, 2015, 7:24 PM

Wrong project

Won't Fix

Assignee

Luis Majano

Reporter

Tanja Zogg

Components

Priority

Major
Configure