add rfid_key to card and key

This commit is contained in:
2015-12-28 21:03:52 +01:00
parent f6b483a9f9
commit 3b2f19b909
18 changed files with 108 additions and 11 deletions

View File

@@ -20,7 +20,8 @@ class KeySearch extends Key
return [
/*[['id_key', 'status', 'type'], 'integer'],
[['number', 'created_at', 'updated_at'], 'safe'],*/
[['number'], 'safe']
[['number'], 'safe'],
[['rfid_key'], 'safe']
];
}
@@ -59,6 +60,7 @@ class KeySearch extends Key
$query->andFilterWhere([
'id_key' => $this->id_key,
'number' => $this->number,
'rfid_key' => $this->rfid_key,
'status' => $this->status,
'type' => $this->type,
'created_at' => $this->created_at,