src/orm/classes/Field/Bindings.php
public function onFrom(ezcQuerySelect $query)
    {
        $bindingsTable = $this->getBindingsTable();
        $query->leftJoin($bindingsTable->getName(), $query->expr->eq(
            "{$this->table->getName()}.{$this->table->getPrimaryKey()}",
            "{$bindingsTable->getName()}.{$bindingsTable->getSourceField()}"
        ));
    }
public function onFrom(ezcQuerySelect $query)
    {
        $bindingsTable = $this->getBindingsTable();
        $query->leftJoin($bindingsTable->getName(), $query->expr->eq(
            "{$this->table->getName()}.{$this->table->getPrimaryKey()}",
            "{$bindingsTable->getName()}.{$bindingsTable->getSourceField()}"
        ));
    }
Дополнительные действия при формировании раздела FROM

@param ezcQuerySelect $query