Here's what the document looks like now.
Array
(
[email] => admin@mysite.com
[emailQueries] => Array
(
[0] => Array
(
[21] => 0
)
[1] => Array
(
[21] => 0
)
)
[last_visit] => 1375050871
)
Here's the code I am using to populate the emailQueries
$arrayValueToAdd = array( (string) $email_id => '0' );
$collection->update( array('email' => $user['email']),
array( '$push' =>
array( 'emailQueries' => $arrayValueToAdd )
)
);
However, I'd like to simply have the emailQueries
array look like:
[emailQueries] => Array
(
[21] => 0
[22] => 0
)
Probably a simple thing I'm overlooking...