/** * Fix of adapter from possible call via singleton * * @param array|Zend_Db_Adapter_Abstract * */ public function __construct($adapter) { if (is_array($adapter)) { $adapter = current($adapter); } self::$_joinTypes[] = self::SQL_STRAIGHT_JOIN; parent::__construct($adapter); }