Skip to content

Smarter EsEntity.populateEntity #6

@EntitySpaces

Description

@EntitySpaces

I have changed EsEntity.populateEntity() so that if there is no esTypeDef entry for the property in question it just simply copies it.

For instance, if I bring down this object graph

Employees
Orders
OrderDetails

And we only include the Employees.js file it now copies the Orders and OrderDetails as just straight json/javascript objects (not our entities). However, what if I included Employees.js and OrderDetails.js I would want those to be real objects. It's not hard to do this I just want to have a design session on this. I started the changes but back them out.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions