[['checkin_start_id', 'checkin_end_id'], 'exist', 'targetClass' => AdminCheckin::class, 'targetAttribute' => 'id', 'skipOnEmpty' => true],
[['admin_id', 'admin_id_add'], 'exist', 'targetClass' => Admin::class, 'targetAttribute' => 'id', 'skipOnEmpty' => true],
[['store_id'], 'exist', 'targetClass' => CityStore::class, 'targetAttribute' => 'id', 'skipOnEmpty' => true],
- ['time_end', function($attribute) {
- if (strtotime($this->$attribute) - strtotime($this->time_start) < 120) {
- $this->addError($attribute, 'Интервал между сменами должен быть не менее 2 минут.');
- }
- }],
+// ['time_end', function($attribute) {
+// if (strtotime($this->$attribute) - strtotime($this->time_start) < 120) {
+// $this->addError($attribute, 'Интервал между сменами должен быть не менее 2 минут.');
+// }
+// }],
// [['work_time'], 'number', 'min' => 0, 'max' => 24],
[['comment'], 'string'],
[['comment'], 'default', 'value' => null],