source/Application/Model/Article.php
protected function getLoadVariantsQuery($blRemoveNotOrderables, $forceCoreTableUsage, $baseObject, $sArticleTable)
    {
        return "select " . $baseObject->getSelectFields($forceCoreTableUsage) . " from $sArticleTable where " .
                 $this->getActiveCheckQuery($forceCoreTableUsage) .
                 $this->getVariantsQuery($blRemoveNotOrderables, $forceCoreTableUsage) .
                 " order by $sArticleTable.oxsort";
    }
protected function getLoadVariantsQuery($blRemoveNotOrderables, $forceCoreTableUsage, $baseObject, $sArticleTable)
    {
        return "select " . $baseObject->getSelectFields($forceCoreTableUsage) . " from $sArticleTable where " .
                 $this->getActiveCheckQuery($forceCoreTableUsage) .
                 $this->getVariantsQuery($blRemoveNotOrderables, $forceCoreTableUsage) .
                 " order by $sArticleTable.oxsort";
    }
protected function getLoadVariantsQuery ( $ blRemoveNotOrderables , $ forceCoreTableUsage , $ baseObject , $ sArticleTable ) { return "select " . $ baseObject -> getSelectFields ( $ forceCoreTableUsage ) . " from $sArticleTable where " . $ this -> getActiveCheckQuery ( $ forceCoreTableUsage ) . $ this -> getVariantsQuery ( $ blRemoveNotOrderables , $ forceCoreTableUsage ) . " order by $sArticleTable.oxsort" ; }
Forms query to load variants.

@param bool                      $blRemoveNotOrderables
@param bool                      $forceCoreTableUsage
@param oxSimpleVariant|oxarticle $baseObject
@param string                    $sArticleTable

@return string
Forms query to load variants .