fix detsta download, fix card move card update

This commit is contained in:
2016-03-18 10:21:28 +01:00
parent 16d25abd7c
commit 1d5a5be5bf
8 changed files with 31 additions and 7 deletions

View File

@@ -186,6 +186,12 @@ class Customer extends BaseFitnessActiveRecord
}
public function afterSave($insert, $changedAttributes){
if ( !$insert ){
Card::updateCardFlagTicket($this->id_customer_card);
}
}
}

View File

@@ -5,6 +5,7 @@ namespace common\models;
use Yii;
use yii\helpers\Url;
use yii\helpers\VarDumper;
use common\models\BaseFitnessActiveRecord;
/**
* This is the model class for table "log".
@@ -28,7 +29,7 @@ use yii\helpers\VarDumper;
* @property string $created_at
* @property string $updated_at
*/
class Log extends \yii\db\ActiveRecord
class Log extends BaseFitnessActiveRecord
{
public static $TYPE_INFO = 10;