The method names are used in the exception thrown when the user makes a
typo (e.g. ->frm, or ->werwer() ). The return types are not used by the
QB however. I could update this to just return the method names and then
infer the rest in the command
On Wed, Sep 18, 2013 at 04:04:41AM -0700, David Buchmann wrote:
>    In lib/Doctrine/ODM/PHPCR/Query/Builder/AbstractNode.php:
> 
>  >
>  > -                    $fMethods[$rMethod->name] = $retType;
>  > +                    if (preg_match('&@return ([A-Za-z]+)&', $comment, $matches)) {
>  > +                        if (!isset($matches[1])) {
>  > +                            throw new \Exception(sprintf(
>  > +                                'Expected docblock for factoryMethod "%s" to declare a return type.',
>  > +                                $rMethod->name
>  > +                            ));
>  > +                        }
>  > +
>  > +                        $returnType = $matches[1];
>  > +                        $fMethods[$rMethod->name]['returnType'] = $returnType;
>  > +                    }
> 
>    is this used for the doc only or also elsewhere? could we move it to the
>    doc command?
> 
>    —
>    Reply to this email directly or [1]view it on GitHub.
> 
> References
> 
>    Visible links
>    1. https://github.com/doctrine/phpcr-odm/pull/326/files#r6430284