Not a bug The method decodeValueFromSource return invalid in some cases.

truonglv

Well-known member
Affected version
Latest
Hi there. I have my own data and want make it into Entity then using this method instantiateEntity. Some columns have type JSON_ARRAY. And when i pass data into entity with existing array then retrieve it. They return empty array instead of the value I have passed before. Cause json_decode of array will fails. Is it bug?
 
No. The source content is of a JSON format, so it'll be decoded as JSON.

Incidentally, you really shouldn't be instantiating entities like that yourself. Entities should really only be instantiated by the finder system.

Liam
 
Back
Top Bottom