Invalidate dor log trigger changes

This commit is contained in:
2016-10-02 21:52:46 +02:00
parent f065ecb1b5
commit 892f81908f
6 changed files with 202 additions and 18 deletions

View File

@@ -225,9 +225,9 @@ class Card extends \common\models\BaseFitnessActiveRecord
public function setFlagsHasKey($hasKey){
$pos = Card::$FLAG_KEY;
$this->flag = $hasKey ? ( $this->flag & ~(1 << $pos) ) : ( $this->flag | 1 << $pos );
$this->flag_out = $hasKey ? ( $this->flag_out | 1 << $pos ) : ( $this->flag_out & ~(1 << $pos) );
\Yii::info("flag has key: ".$this->flag .";".$this->flag_out);
// $this->flag = $hasKey ? ( $this->flag & ~(1 << $pos) ) : ( $this->flag | 1 << $pos );
// $this->flag_out = $hasKey ? ( $this->flag_out | 1 << $pos ) : ( $this->flag_out & ~(1 << $pos) );
// \Yii::info("flag has key: ".$this->flag .";".$this->flag_out);
}