title: BreezeJS import entities type error
body: <p>Here's what I current have, OData backend, AngularJS using breezejs on the front end. The app is a cordova app and will work offline so I need to store what I have in the breeze cache somewhere. My choice is currently indexeddb.</p>
  
  <p>I am exporting each entities into its own store in indexeddb which works absolutely fine. I can re import all these entities individually as well. The issue comes when I create an entity offline (so will have a temp key, eg -1) when I am importing the entities I get an error</p>
  
  <pre><code>entity Customer TypeError: Cannot read property 'values' of null
  </code></pre>
  
  <p>This appears to be due to foreign key issue when breeze does its fix up of id's but I can't figure out how to get round this.</p>
  
  <p>I've tried importing the entities in a certain order ect.</p>
  
  <p>If i export the whole lot in one string and reimport it in one string then it works fine with the newly created entities but I am reaching some size constraints hence the splitting up of the entities.</p>