Hi Jordan,

Just send a PR :-)

Marco Pivetta

http://twitter.com/Ocramius

http://ocramius.github.com/

On 17 June 2015 at 15:25, Jordan Gigov <[email protected]> wrote:

> After a whole day of trying to figure-out why my Named Native Queries are
> never found I discovered the following problems with the current
> implementation as of ORM 2.5.0
>
> In Doctrine\ORM\Tools\EntityGenerator:
> protected function generateEntityAnnotation completely neglects named
> queries when doing transformation from XML/YML to PHP annotations.
>
> In Doctrine\ORM\Configuration:
> Named Native Queries are supposed to be added to
> $this->_attributes['namedNativeQueries'] before being read. The method
> addNamedNativeQuery is *never* called on a Configuration object. There
> are some instances of calling it on a ClassMetadata object.
> While the definitions for those queries are indeed read when explicitly
> requesting the metadata for a class, they never enter the configuration,
> from which they are supposed to be read.
>
>
> For now, I only propose that you change the error message from "Could not
> find a named native query by the name..." to something like "Named native
> queries are not yet implemented".
> That would have saved me a day of frustration.
>
> --
> You received this message because you are subscribed to the Google Groups
> "doctrine-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/doctrine-user.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to