Skip to content

Commit

Permalink
fix: blocksやframesのデータが消えているため、frames.key、blocks.keyも削除用テーブルの登録する必要があ…
Browse files Browse the repository at this point in the history
…るため修正

NetCommons3/NetCommons3#735
  • Loading branch information
s-nakajima committed Oct 8, 2019
1 parent 15a1e98 commit ffdba8c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Model/RoomDeleteRelatedTable.php
Expand Up @@ -80,9 +80,11 @@ public function insertByRoomId($roomId) {
);

foreach ($targetTables as $table) {
$this->__execInsertQuery(
$roomId, 'room_id', $roomId, $table, 'id', $this->__defaultConditions[$table]
);
foreach ($this->__defaultConditions[$table] as $field => $condition) {
$this->__execInsertQuery(
$roomId, 'room_id', $roomId, $table, $field, [$field => $condition]
);
}
}

//トランザクションCommit
Expand Down

0 comments on commit ffdba8c

Please sign in to comment.