Bug(バグ) #1158
opDoctrineQuery::specifyConnection() doesn't work
Start date:
2010-06-10
Due date:
% Done:
100%
3.6 で発生するか:
Unknown (未調査)
3.8 で発生するか:
Unknown (未調査)
Description
Overview (現象)¶
opDoctrineQuery::specifyConnection() で指定した接続が利用されず、デフォルトの接続が利用される。
Causes (原因)¶
lib/util/opDoctrineQuery.class.php
opDoctrineQuery::preQuery() で $this->conn に指定した接続を入れているが、$this->_conn を書き換えないと利用されないため。
132 public function preQuery() 133 { 134 if ($this->specifiedConnection) 135 { 136 $this->conn = $this->specifiedConnection; 137 }
Way to fix (修正内容)¶
$this->_conn に修正する。
Related issues
Associated revisions
fixed opDoctrineQuery::specifyConnection() doesn't work (fixes #1158)
History
#1 Updated by Yuki Yamashita about 14 years ago
- Target version set to OpenPNE 3.6beta1
#2 Updated by Yuki Yamashita about 14 years ago
- Status changed from New(新規) to Accepted(着手)
- Assignee set to Yuki Yamashita
#3 Updated by Yuki Yamashita about 14 years ago
- Status changed from Accepted(着手) to Pending Review(レビュー待ち)
- % Done changed from 0 to 50
更新履歴 46197668709a12525cf5745e6c673822c438850f で適用されました。
#4 Updated by Shogo Kawahara about 14 years ago
- Status changed from Pending Review(レビュー待ち) to Pending Testing(テスト待ち)
- % Done changed from 50 to 70
#5 Updated by Kousuke Ebihara about 14 years ago
- Status changed from Pending Testing(テスト待ち) to Fixed(完了)
- % Done changed from 70 to 100