Skip to content

Loading…

DDC-1524: NamedQueries annotation doesn't work with just one NamedQuery #2156

Closed
doctrinebot opened this Issue · 4 comments

2 participants

@doctrinebot

Jira issue originally created by user thiagojfg:

NamedQueries annotation doesn't work with just one NamedQuery

the problem is locale in the class Doctrine\ORM\Mapping\Driver\AnnotationDriver line 179.

Is needed validate if var $namedQueriesAnnot->value is an array before try perform foreach statement.

Please I'm sorry for my bad English.

Thank you

@doctrinebot

Comment created by @beberlei:

Why dont you define the named queries as array? just @NamedQuery({...}) ?

Also please consider attaching a diff of your patch, not the whole changed class.

@doctrinebot

Comment created by @beberlei:

Added better validations.

@doctrinebot

Issue was closed with resolution "Fixed"

@beberlei beberlei was assigned by doctrinebot
@doctrinebot doctrinebot added this to the 2.2 milestone
@doctrinebot doctrinebot closed this
@doctrinebot doctrinebot added the Bug label
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.