public function addTable($join = NULL,
$alias = NULL
) { // This is used for lookups in the many_to_one table.
$field =
$this->handler->relationship . '_' .
$this->handler->table . '.' .
$this->handler->field;
if (empty($join)) { $join =
$this->
getJoin();
} // See if there's a chain between us and the base relationship. If so, we need
// to create a new relationship to use.
$relationship =
$this->handler->relationship;
// Determine the primary table to seek
if (empty($this->handler->query->relationships
[$relationship])) { $base_table =
$this->handler->view->storage->
get('base_table'
);
} else {