Why not? If the user specifies "foo.foo.foo" or just "foo" we will get 3
parts or 1 part and the field will be invalid.

On Fri, Sep 13, 2013 at 10:06:16AM -0700, Lukas Kahwe Smith wrote:
> In lib/Doctrine/ODM/PHPCR/Query/Builder/AbstractLeafNode.php:
> 
> > +     *
> > +     *     [selector_name].[field_name]
> > +     *
> > +     * e.g. my_selector.first_name
> > +     *
> > +     * @param string $field
> > +     *
> > +     * @return array
> > +     */
> > +    protected function explodeField($field)
> > +    {
> > +        $parts = explode('.', $field);
> > +
> > +        if (count($parts) == 2) {
> > +            return $parts;
> > +        } else {
> 
> else isnt needed here
> 
> —
> Reply to this email directly or view it on GitHub.*
> 
> *