TimestampBehavior::class, 'attributes' => [ ActiveRecord::EVENT_BEFORE_INSERT => ['created_at'], ] ] ]; } /** * @inheritdoc */ public function rules() { return [ [['store_id', 'report_id', 'user_id', 'is_delete','user_id','money'], 'integer'], [['created_at'], 'safe'] ]; } }