Whats the simplest way to convert the following nested array into a simple array
array(
'user' => array(
'firstName' => 'Test',
'lastName' => 'Test'
),
'title' => 'Test'
)
Into
array(
'user.firstName' => 'Test',
'user.lastName' => 'Test',
'title' => 'Test'
)
I need this format for a doctrine query where statement.