Closed (works as designed)
Project:
Drupal core
Version:
7.0
Component:
database system
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 May 2011 at 12:58 UTC
Updated:
24 May 2011 at 08:19 UTC
Hi Guys,
I'm using the new amazing Database Abstraction layer, and I've had a problem using the join method, because it returns a sting instead an Object. After a little investigation on includes/database/select.inc, at line 1345 I found out the problem:
SelectQuery->addJoin method returns the string $alias instead the SelectQuery object.
The patch is pretty simple, change 1345 line in select.inc
from: return $alias;
to: return $this;
I think this solution could avoid big headache to someone :)
Bye
Comments
Comment #1
damien tournoud commentedThis is by design.
addJoin()is one of the few methods that are not fluid.Comment #2
aidanlis commented