I'm creating my first web app with Symfony. Now I found a solution for making my code more customizable and extensible. But for making this solution working in my app I need some help.
Is it possible in Symfony to insert data that is in a key -> value array to a table in the database?
For example, I have an array that looks like: array('Titel' => 'The Hobbit', 'Music' => 'Add Sheeron')
Now I need to put this into the database table X that looks like: Titel (varchar (255)) Music (varchar (255))
How can I insert the array into the database? Also the array can contain data that need to be inserted into another table with other Key names.
In other words, how can I map the array key to a field in the database so that I can use it to insert it into the table?