Logo
Explore Help
Register Sign In
mahdahar/clqms-be
1
0
Fork 0
You've already forked clqms-be
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
clqms-be/app/Models/Organization/HostAppModel.php

18 lines
465 B
PHP
Raw Permalink Normal View History

chore(repo): normalize EOL and harden contact patch flow - handle contact PATCH failures by checking model save result and returning HTTP 400 with the model error message - update ContactDetailModel nested updates to enforce active-detail checks and use model update() with explicit failure propagation - extend contact patch assertions and align test-create variants expectations to status=success for POST responses - refresh composer lock metadata/dependency constraints and include generated docs/data/test files updated during normalization - impact: API contract unchanged except clearer 400 error responses on invalid contact detail updates
2026-04-17 05:38:11 +07:00
<?php
namespace App\Models\Organization;
use App\Models\BaseModel;
class HostAppModel extends BaseModel {
protected $table = 'hostapp';
protected $primaryKey = 'HostAppID';
protected $allowedFields = ['HostAppName', 'SiteID', 'CreateDate', 'EndDate'];
protected $useTimestamps = true;
protected $createdField = 'CreateDate';
protected $updatedField = '';
protected $useSoftDeletes = true;
protected $deletedField = 'EndDate';
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.7 Page: 95ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API