dongyunwei8596 2014-01-09 15:07 采纳率: 100%
浏览 17
已采纳

Doctrine - MongoDB,来自BinData类型的id

I have MongoDB data which uses _id as BinData object.

{  
   "_id" : BinData(3,"ABRWTIFGPEeSFf69fISAOA=="),
   "Email" : "XXXXX@msn.com", 
}

How to set annotation mapping for _id from type BinData?

  • 写回答

2条回答 默认 最新

  • dongmeba4877 2014-01-22 09:27
    关注

    after #444 merged into master ,we can deal with BinData Obejct into MongoDB as MongoBinData Object with same type \MongoBinData::UUID (3)

    Annotation we must use int this case when we use Doctrine MongoDB ODM is @Id(type="bin_uuid")

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?