/** * Class constructor * Add straight join support * * @param \Magento\Framework\DB\Adapter\Pdo\Mysql $adapter */ public function __construct(\Magento\Framework\DB\Adapter\Pdo\Mysql $adapter) { if (!isset(self::$_partsInit[self::STRAIGHT_JOIN])) { self::$_partsInit = [self::STRAIGHT_JOIN => false] + self::$_partsInit; } parent::__construct($adapter); }
/** * Class constructor * Add straight join support * * @param \Zend_Db_Adapter_Abstract $adapter */ public function __construct(\Zend_Db_Adapter_Abstract $adapter) { if (!isset(self::$_partsInit[self::STRAIGHT_JOIN])) { self::$_partsInit = array(self::STRAIGHT_JOIN => false) + self::$_partsInit; } parent::__construct($adapter); }
/** * Class constructor * Add straight join support * * @param Adapter\Pdo\Mysql $adapter * @param Select\SelectRenderer $selectRenderer * @param array $parts */ public function __construct(\Magento\Framework\DB\Adapter\Pdo\Mysql $adapter, \Magento\Framework\DB\Select\SelectRenderer $selectRenderer, $parts = []) { self::$_partsInit = array_merge(self::$_partsInit, $parts); if (!isset(self::$_partsInit[self::STRAIGHT_JOIN])) { self::$_partsInit = [self::STRAIGHT_JOIN => false] + self::$_partsInit; } $this->selectRenderer = $selectRenderer; parent::__construct($adapter); }