Which mapping type to choose for associative Arrays? Doctrine ODM

前端 未结 5 2298
深忆病人
深忆病人 2021-02-13 23:45

I have a simple question about the (by the way really great!) Doctrine ODM.

Assume you have a document like:

/**
 * @Document
 */
class Test
{
    /** @I         


        
5条回答
  •  花落未央
    2021-02-14 00:23

    For versions before ODM 2.0 @Hash will provide the necessary data type. However after ODM 2.0 @Hash field is being removed. In order to use it we have to use @field with type hash. For further reference [click here][1]

提交回复
热议问题