Enhancement(機能追加・改善) #933
Notify Doctrine_Event as symfony's one (Doctrineのイベントをsymfonyのイベントとして通知する)
開始日:
2010-04-06
期日:
進捗率:
100%
関連するチケット
関係しているリビジョン
added opDoctrineEventNotifier for notify Doctrine_Event as sfEvent (refs #933)
changed opDoctrineEventNotifier::notify() to do nothing if there is no an available instance of the sfContext (fixes #933)
履歴
#1 Eitarow Fukamachi が約14年前に更新
- 進捗率 を 30 から 90 に変更
#2 Eitarow Fukamachi が約14年前に更新
- ステータス を Accepted(着手) から Pending Review(レビュー待ち) に変更
#3 Eitarow Fukamachi が約14年前に更新
- 題名 を Doctrineのイベントをsymfonyのイベントとして通知する から Notify Doctrine_Event as symfony's one (Doctrineのイベントをsymfonyのイベントとして通知する) に変更
#4 Eitarow Fukamachi が約14年前に更新
- 対象バージョン を OpenPNE 3.4.3 から OpenPNE 3.5.2 に変更
#5 Kousuke Ebihara がほぼ14年前に更新
- ステータス を Pending Review(レビュー待ち) から Rejected(差し戻し) に変更
- 対象バージョン を OpenPNE 3.5.2 から OpenPNE 3.5.3 に変更
- 進捗率 を 90 から 0 に変更
Pending Review(レビュー待ち)¶ 開発者がチケットの対応を完了し、レビューを依頼していることを示すステータスです。 このステータスにする際は、「git://github.com/openpne/OpenPNE3.git の master もしくはリリースブランチにコードがマージされている」「チケットに関連するコミットが紐づけられているか、記載されている」という条件を満たしていなければなければなりません。条件を満たしていない場合、レビューを行うことができず、「Rejected(差し戻し)」となる場合があります。
#6 Kousuke Ebihara がほぼ14年前に更新
- 対象バージョン を OpenPNE 3.5.3 から OpenPNE 3.6beta1 に変更
#7 Kousuke Ebihara がほぼ14年前に更新
- ステータス を Rejected(差し戻し) から Pending Review(レビュー待ち) に変更
#8 Shogo Kawahara がほぼ14年前に更新
- ステータス を Pending Review(レビュー待ち) から Rejected(差し戻し) に変更
openpne:install 時に以下のエラーメッセージが表示されます。
The "default" context does not exist.
以下のような修正が必要かと思われます。(案
diff --git a/lib/util/opDoctrineEventNotifier.class.php b/lib/util/opDoctrineEventNotifier.class.php index 12b3e66..00ff5e1 100644 --- a/lib/util/opDoctrineEventNotifier.class.php +++ b/lib/util/opDoctrineEventNotifier.class.php @@ -19,8 +19,11 @@ class opDoctrineEventNotifier extends Doctrine_Record_Listener { private static function notify($when, $action, $doctrineEvent) { - $dispatcher = sfContext::getInstance()->getEventDispatcher(); - $dispatcher->notify(new sfEvent(null, sprintf('op_doctrine.%s_%s_%s', $when, $action, get_class($doctrineEvent->getInvoker())))); + if (sfContext::hasInstance()) + { + $dispatcher = sfContext::getInstance()->getEventDispatcher(); + $dispatcher->notify(new sfEvent(null, sprintf('op_doctrine.%s_%s_%s', $when, $action, get_class($doctrineEvent->getInvoker())))); + } } public function preSave(Doctrine_Event $event)
#9 Kousuke Ebihara がほぼ14年前に更新
- ステータス を Rejected(差し戻し) から Pending Review(レビュー待ち) に変更
更新履歴 63dfc9619b974314d085eb2388361d330de7d04b で適用されました。
#10 Shogo Kawahara がほぼ14年前に更新
- ステータス を Pending Review(レビュー待ち) から Pending Testing(テスト待ち) に変更
- 進捗率 を 50 から 70 に変更
#11 Kousuke Ebihara がほぼ14年前に更新
- ステータス を Pending Testing(テスト待ち) から Fixed(完了) に変更
- 進捗率 を 70 から 100 に変更