/**
  * Create the SQL of the joins of a table for a FROM expression
  * @param zibo\library\database\manipulation\expression\TableExpression $table
  * @return string SQL representation of the joins
  */
 protected function parseTableExpressionJoins(TableExpression $table)
 {
     $sql = '';
     $joins = $table->getJoins();
     if (!$joins) {
         return $sql;
     }
     foreach ($joins as $join) {
         $sql .= ' ' . $join->getType() . ' JOIN ' . $this->parseTableExpressionForFrom($join->getTable()) . ' ON ' . $this->parseCondition($join->getCondition(), false);
     }
     return $sql;
 }