How do I store a complete array in database in symfony. My content of the array is a shopping cart:
article_id / article / amount / price
example:
1 / knife / 4 / 4$
2 / for / 6 / 2$
How can I store the complete array in one cell?
Thanks in advance!
You may use the object column type of doctrine. This will
serialize()anddeserialize()your contents.See: http://www.doctrine-project.org/documentation/manual/1_0/en/defining-models:columns:data-types#object