i'm using breeze 1.4.8.
let's say i have an order with related customers (the real model differs from that, just for simplification) in my case the relationship is defined as 1 to many and the FK is not nullable.
Situation: i have some orders and all the customers in cache locally.
now if i delete a customer which is already used in one or more orders (also locally) i don't get any feedback from breeze. after setting customers:
entity.entityAspect.setDeleted();
i would expect validation errors popping up, first of all already on the client. but this is not the case so i was hoping for my safe harbour (the database model) to throw some exceptions...but nope
currently it goes through the saveChanges() method and it hits the server side where all related orders are hit in the BeforeSaveEntity() - Method which feels unnecessary to me.
In the end nothing gets changed (besides the deleted state locally) but at least i would like to have some feedback from either breeze on the client or the serverside (server breeze)
maybe there went something wrong with my database model. i've recreated the relationship, updated my model multiple times but without success.
metadata: http://pastebin.com/BjwLgULc
model order (transactions): http://pastebin.com/PSGsZGxR
model customer (vehiclemodel): http://pastebin.com/SW9Wj4ze
part of beforesave entity code which gets hit unecessarly: http://pastebin.com/N99ucY6P
not sure what i'm missing, any enlightment would be highly appreciated