mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-1524: NamedQueries annotation doesn't work with just one NamedQuery #1911
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @doctrinebot on GitHub (Dec 9, 2011).
Originally assigned to: @beberlei on GitHub.
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 commented on GitHub (Dec 15, 2011):
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 commented on GitHub (Dec 17, 2011):
Comment created by @beberlei:
Added better validations.
@doctrinebot commented on GitHub (Dec 17, 2011):
Issue was closed with resolution "Fixed"
@doctrinebot commented on GitHub (Dec 13, 2015):
Imported 1 attachments from Jira into https://gist.github.com/05bf6495725b5bdf6d2f