Permalink
Browse files

[MODM-119] Adding missing strategy property to Field annotation.

  • Loading branch information...
1 parent afa17ea commit b9bd2dcbab3c8ea2ef537fa1301525b3004ba795 @jwage jwage committed Feb 11, 2011
Showing with 2 additions and 1 deletion.
  1. +1 −0 lib/Doctrine/ODM/MongoDB/Mapping/Driver/DoctrineAnnotations.php
  2. +1 −1 tests/Documents/Article.php
@@ -74,6 +74,7 @@ class Field extends Annotation
public $type = 'string';
public $nullable = false;
public $options = array();
+ public $strategy;
}
final class Id extends Field
{
@@ -21,7 +21,7 @@ class Article
/** @Date */
private $createdAt;
- /** @Collection */
+ /** @Field(type="collection", strategy="set") */
private $tags = array();
public function getId()

0 comments on commit b9bd2dc

Please sign in to comment.