add webcam to customer create/update

This commit is contained in:
2015-12-30 12:02:26 +01:00
parent 135d64e4c8
commit eb989d5f80
16 changed files with 240 additions and 7 deletions

View File

@@ -39,6 +39,9 @@ class Customer extends \yii\db\ActiveRecord
const SEX_MAN = 10;
const SEX_WOMAN = 20;
public $photo_data;
/**
* @inheritdoc
*/
@@ -146,6 +149,11 @@ class Customer extends \yii\db\ActiveRecord
'id' => 'id_user'
] );
}
public function getImage1(){
return $this->hasOne ( Image::className (), [
'id_image' => 'id_image'
] );
}
public function getCustomerCardNumber(){
$result = null;