fix table name ValueSet to valueset
This commit is contained in:
parent
11dca70c70
commit
8fc9541063
@ -21,8 +21,8 @@ class ContainerDefModel extends BaseModel {
|
||||
protected $afterUpdate = ['convertDatesToUTCISO'];
|
||||
|
||||
public function getContainer($ConDefID) {
|
||||
$rows = $this->select('containerdef.*, ValueSet.VValue as ColorTxt')
|
||||
->join('ValueSet', 'ValueSet.VID=containerdef.Color', 'left')
|
||||
$rows = $this->select('containerdef.*, valueset.VValue as ColorTxt')
|
||||
->join('valueset', 'valueset.VID=containerdef.Color', 'left')
|
||||
->where('ConDefID', $ConDefID)->get()->getResultArray();
|
||||
return $rows;
|
||||
}
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Models\ValueSet;
|
||||
|
||||
use App\Models\BaseUtcModel;
|
||||
use App\Models\BaseModel;
|
||||
|
||||
class ValueSetDefModel extends BaseModel {
|
||||
protected $table = 'valuesetdef';
|
||||
@ -14,13 +14,13 @@ class ValueSetDefModel extends BaseModel {
|
||||
protected $updatedField = '';
|
||||
protected $useSoftDeletes = true;
|
||||
protected $deletedField = 'EndDate';
|
||||
|
||||
/*
|
||||
protected $beforeInsert = ['normalizeDatesToUTC'];
|
||||
protected $beforeUpdate = ['normalizeDatesToUTC'];
|
||||
protected $afterFind = ['convertDatesToUTCISO'];
|
||||
protected $afterInsert = ['convertDatesToUTCISO'];
|
||||
protected $afterUpdate = ['convertDatesToUTCISO'];
|
||||
|
||||
*/
|
||||
public function getValueSetDefs($param = null) {
|
||||
if ($param !== null) {
|
||||
$builder = $this->builder();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user