TimestampBehavior::className(), 'value' => function(){ return date('Y-m-d H:i:s' ); } ], ], parent::behaviors()); } /** * @inheritdoc */ public function rules() { return [ [['count', 'id_product', ], 'integer'], [['comment'], 'string', 'max' => 255], [['productIdentifier'], 'string', 'max' => 128], ]; } /** * @inheritdoc */ public function attributeLabels() { return [ 'id_waste' => Yii::t('common/waste', 'Id Waste'), 'count' => Yii::t('common/waste', 'Mennyiség'), 'id_product' => Yii::t('common/waste', 'Termék'), 'stock_before' => Yii::t('common/waste', 'Mennyiség előtte'), 'stock_after' => Yii::t('common/waste', 'Mennyiség utána'), 'id_user' => Yii::t('common/waste', 'Felhasználó'), 'comment' => Yii::t('common/waste', 'Megjegyzés'), 'created_at' => Yii::t('common/waste', 'Létrehozva'), 'updated_at' => Yii::t('common/waste', 'Updated At'), ]; } }