Hi,
I don't know if any one has run into this, but I have been testing
Symfony2 in combination with Doctrine MongoDB for some time and have
run into what I believe is a conflict between the two. I don't know if
I am submitting this correctly here and am sorry if it wasn't the
right place. Anyway, in my model I have the following :

/**
 * @EmbedMany(targetDocument="Application\ChronoTextsBundle\Document
\ChronoKeyword")
 * @Validation({ @Collection(
 *   fields = {
 *     "keyword" = @NotNull
 *   },
 *   allowMissingFields = true,
 *   allowExtraFields = true
 * )})
 */
private $keywords;

This then leeds to an error thrown by Doctrine :
[Syntax Error] Expected Doctrine\Common\Annotations
\Lexer::T_CLOSE_CURLY_BRACES, got end of string in property Application
\ChronoTextsBundle\Document\ChronoText::$keywords.
500 Internal Server Error - Doctrine\Common\Annotations
\AnnotationException

After some looking into it I saw that the problem is that @Collection
is also used by Doctrine MongoDB Mapping and it does not like it.

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en

Reply via email to