Breeze / breeze.js.labs

OFFICIAL Breeze.js Labs package of extensions and utilities for Breeze.js client apps.
MIT License
43 stars 44 forks source link

breeze.labs.dataservice.sharepoint - nav properties #26

Open dranovsk opened 9 years ago

dranovsk commented 9 years ago

Navigation property entity that has it's own navigation properties is not being instantiated.

Please consider changing breeze.labs.dataservice.sharepoint.js line 318 from:

if (entityType._mappedPropertiesCount <= Object.keys(node).length - 1) {

to

if (entityType._mappedPropertiesCount - entityType.navigationProperties.length <= Object.keys(node).length - 1) {

otherwise setNpValue returns null pointer error accessing entityAspect.

Thank you!