You're not supposed to be able to do that. MongoDB doesn't allow dots in
key names. The example that Jeremy showed below here, is how it should
> > have raised errors/exceptions if keys contained periods in documents
> > destined for storage (e.g. not query criteria). Attempting to sidestep the
> > driver's precautions by crafting an invalid field name in an update
> > modifier will still trigger the server's validation:
> >
> > >>> $m->test->foo->update(['x'=>1],['$set'=>['x'=>['y.z'=>1]]])
> > MongoWriteConcernException with message 'localhost:27017: The dotted field
> > 'y.z' in 'x.y.z' is not valid for storage.'
> >
> >
> >
> >
> > On Wed, Dec 24, 2014 at 9:01 AM, Nours troisCentDouze <
nour...@gmail.com
> > <javascript:>> wrote:
> >
> >> Hy,
> >>
> >> I found a mistake in mongo php driver :
> >> we can save
> >> $datas = ['key.forbidden' => "data"] ;
> >> $collection->insert($datas) ;
> >>
> >> ... but ... we'll have problem to use it ... no ?
> >>
> >>
> >> How and where can I report that ?
> >>
> >> mongo PECL driver 1.5.6
> >>
> >> no php Exception, ...
> >>
> >> When you want to manipulate datas with shell, you need to rename all
> >> fields
> >>
> >> --
> >> You received this message because you are subscribed to the Google Groups
> >> "mongodb-dev" group.
> >> To unsubscribe from this group and stop receiving emails from it, send an