if ($withOffline) $query->andWhere('e.status >= 0'); | if ($withOffline) $query->andWhere('e.status >= 0'); | ||||
else $query->andWhere('e.status = 1'); | else $query->andWhere('e.status = 1'); | ||||
$query->leftJoin('e.productFamilies','productFamilies') ; | |||||
$query->orderBy('e.position', 'ASC'); | $query->orderBy('e.position', 'ASC'); | ||||