Handle parent-child relations between entities where the child FK relates to a parent property that is not the parent's PK.
Tests for this are in the breeze.js repo, in entityTests.js.
This pull request changes the setDpValueSimple() and setNpValue() functions of DefaultPropertyInterceptor, to update relations when setting properties, and the _linkRelatedEntities() function of EntityManager, to update relations when attaching entities.
This pull request also changes calls to findEntityByKey() to getEntityByKey() because the former is deprecated.
Handle parent-child relations between entities where the child FK relates to a parent property that is not the parent's PK.
Tests for this are in the breeze.js repo, in entityTests.js.
This pull request changes the
setDpValueSimple()
andsetNpValue()
functions of DefaultPropertyInterceptor, to update relations when setting properties, and the_linkRelatedEntities()
function of EntityManager, to update relations when attaching entities.This pull request also changes calls to
findEntityByKey()
togetEntityByKey()
because the former is deprecated.