Which mapping type to choose for associative Arrays? Doctrine ODM

前端 未结 5 2370
深忆病人
深忆病人 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:03

    It should be the Hash type:

    http://readthedocs.org/docs/doctrine-mongodb-odm/en/latest/reference/annotations-reference.html?highlight=hash#hash

提交回复
热议问题