While passing an object of sobjectType Quote to an apex controller from lightning helper, we are facing an error "Unable to read SObject", but same thing is working fine without locker service turned on. following are lines of codes for the same..
quote.sobjectType = 'Quote';
var action = component.get('c.saveQuote');
action.setParams({
v_quote: quote
lineItems: lineItems
});
$A.enqueueAction(action);
controller:
public static Quote saveQuote(Quote v_quote, List<QuoteLineItem> lineItems) {
system.debug(v_quote);
///logic
update v_quote;
///logic
return v_quote;
}