How can I store an array with Doctrine and Mongo DB?
I do not want reference document, only array.
Example:
Type[ Type1, Type2,
... use Doctrine\ODM\MongoDB\Mapping\Annotations as MongoDB; ... class MyClass { /** * @MongoDB\Hash */ protected $tags = array(); }
Besides, you can check out BSPTagBundle if you want a form type that helps you with that type of variable.