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

damien tournoud’s picture

Status: Patch (to be ported) » Closed (works as designed)

This is by design. addJoin() is one of the few methods that are not fluid.

aidanlis’s picture

Title: Critical BUG on: SelectQuery->addJoin method » SelectQuery->addJoin method is not chainable
Assigned: coreykck » Unassigned