vhost init...2
This commit is contained in:
parent
438003707f
commit
7d8a207297
@ -205,7 +205,7 @@ abstract class BaseModel extends Model
|
|||||||
// }
|
// }
|
||||||
|
|
||||||
//create , modify 직전 작업용 작업
|
//create , modify 직전 작업용 작업
|
||||||
protected function changeFormData(string $action, string $field, array $formDatas, $entity)
|
protected function changeFormData(string $action, string $field, array $formDatas, $entity): BaseEntity
|
||||||
{
|
{
|
||||||
switch ($field) {
|
switch ($field) {
|
||||||
case $this->primaryKey:
|
case $this->primaryKey:
|
||||||
|
|||||||
@ -89,7 +89,7 @@ class CategoryModel extends BaseHierarchyModel
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Field별 Form Option용
|
//Field별 Form Option용
|
||||||
protected function changeFormData(string $action, string $field, array $formDatas, $entity)
|
protected function changeFormData(string $action, string $field, array $formDatas, $entity): CategoryEntity
|
||||||
{
|
{
|
||||||
switch ($field) {
|
switch ($field) {
|
||||||
case "isaccess":
|
case "isaccess":
|
||||||
@ -109,7 +109,7 @@ class CategoryModel extends BaseHierarchyModel
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
$entity = parent::changeFormData($action, $field, $formDatas, $entity);
|
$entity = new CategoryEntity(parent::changeFormData($action, $field, $formDatas, $entity)->toArray());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return $entity;
|
return $entity;
|
||||||
|
|||||||
@ -59,7 +59,7 @@ class UserModel extends BaseModel
|
|||||||
{
|
{
|
||||||
return $this->where($conditions)->first() ?: throw new \Exception(__FUNCTION__ . "에서 {$this->getClassName()}의 해당 데이터가 없습니다.");
|
return $this->where($conditions)->first() ?: throw new \Exception(__FUNCTION__ . "에서 {$this->getClassName()}의 해당 데이터가 없습니다.");
|
||||||
}
|
}
|
||||||
protected function changeFormData(string $action, string $field, array $formDatas, $entity)
|
protected function changeFormData(string $action, string $field, array $formDatas, $entity): UserEntity
|
||||||
{
|
{
|
||||||
switch ($field) {
|
switch ($field) {
|
||||||
case "role":
|
case "role":
|
||||||
@ -74,7 +74,7 @@ class UserModel extends BaseModel
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
$entity = parent::changeFormData($action, $field, $formDatas, $entity);
|
$entity = new UserEntity(parent::changeFormData($action, $field, $formDatas, $entity)->toArray());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return $entity;
|
return $entity;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user