[FLOW3-general] Storing JSON object
Dominique Feyer
dfeyer at ttree.ch
Wed Feb 8 22:26:38 CET 2012
Hello,
I work on a project where I need to have some "custom fields" per model
and per client. The application is multi client, so I need to be flexible.
My current idea is to stored this custom field as JSON object
(serialized). It's not a problem for searching and/or ordering, we use
an external ElasticSearch for that.
For an Example model object with those fields:
ExampleObject:
- id
- type
- customFields
The type will store the name of a serialized object, and the fields
customFields will store the content of the object, but during the life
of the object, this property will store the normal PHP object.
How can I do that with Doctrine/FLOW3 ?
Thanks for your help
Bests,
Dominique Feyer
More information about the FLOW3-general
mailing list