public function getArticleBaseDataQueryBuilder($articleId) { /** @var QueryBuilder $builder */
$builder =
$this->
getEntityManager()->
createQueryBuilder();
$builder->
select(['article', 'mainDetail', 'tax', 'attribute'
]);
$builder->
from(Product::
class, 'article'
) ->
leftJoin('article.mainDetail', 'mainDetail'
) ->
leftJoin('article.tax', 'tax'
) ->
leftJoin('mainDetail.attribute', 'attribute'
) ->
where('article.id = :articleId'
) ->
setParameter('articleId',
$articleId);
return $builder;
} /**
* Used for the article backend module to load the article data into
* the module. This function selects only some fragments for the whole article
* data. The full article data stack is defined in the
* Shopware_Controller_Backend_Article::getArticle function
*
* @param int $articleId
*
* @return Query<Product>
*/