English 中文(简体)
地名2
原标题:symfony2 form choice and mongodb

在使用实体时,我们可以从实体中作出选择:via<>/em>。 外地实体

$builder->add( group ,  entity , array(
     class  =>  FistCoreBundleDocumentGroup ,
));  

但是,在使用mongodb文件时,用什么最佳方法从文件上提出选择?

在我的案件中,小组文件把所有小组都装上。 这样做的最好办法莫过于组建建筑商?

感谢大家

问题回答

Doctrine MongoDB http://www.undleDoctrineMongoDBBundleFormTypeDocumentType。 ,Documents ToArray Transformer,Document ToId Transformer也列入了DoctrineMongoDBBundle,并与之相平行。

更改<代码>entity至>>>>,你可以仅使用捷径。 页: 1

我不得不部分地从Dylan Oliver的回答中去。

SymfonyBundleDoctrineMongoDBBundleFormTypeDocumentType

截至2016年11月,无法找到文件 居住类型似乎如下:

DoctrineBundleMongoDBBundleFormTypeDocumentType




相关问题
Access DB Ref MongoDB

Whats the best way to access/query a DB Ref: UPDATE: users: name, groupref : {$ref:"groups",$id:"ObjectId ..." } } groups: name, topic, country,...,.. Assumption is that user belongs to only one ...

MongoDB nested sets

What re the best practices to store nested sets (like trees of comments) in MongoDB? I mean, every comment can have a parent comment and children-comments (answers). Storing them like this: { ...

MongoMapper and migrations

I m building a Rails application using MongoDB as the back-end and MongoMapper as the ORM tool. Suppose in version 1, I define the following model: class SomeModel include MongoMapper::Document ...

MongoDB takes long for indexing

I have the following setup: Mac Pro with 2 GB of RAM (yes, not that much) MongoDB 1.1.3 64-bit 8 million entries in a single collection index for one field (integer) wanted Calling .ensureIndex(...) ...

Storing and accessing large amounts of data

My application creates pieces of data that, in xml, would look like this: <resource url="someurl"> <term> <name>somename</name> <frequency>somenumber</...