Closed (fixed)
Project:
RESTful Web Services
Version:
7.x-1.0-beta1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
23 Feb 2012 at 14:14 UTC
Updated:
4 Jan 2014 at 01:39 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
mlncn commentedComment #2
techninja commentedHad the same problem, with the exception being that it was the product entity, not the order entity. Here's a hacky patch that if anything simply avoids the error (IE, does nothing to actually fix the issue). My entity seems to have other problems and returns the string "Array" for the price data key.
Comment #3
klausiSebastian will look at this during GSoC.
Comment #4
sepgil commentedThe problem is that the property data of the field commerce_price is a structure, but since it has no property info it is recognized as an EntityValueWrapper. Calling the function EntityValueWrapper::value() won't therefore work.
My patch simply prevents to output complex data types of EntityValueWrappers properties and I think thats the only clean solution.
Comment #5
sepgil commentedComment #6
klausiImproved the comment a bit and committed it to 7.x-2.x.
Comment #7.0
(not verified) commentedAdded to the initial post regarding the inaccurate nature of the title.