Automation ini...3
This commit is contained in:
parent
80ad5e3d02
commit
0bb878409f
@ -80,14 +80,6 @@ abstract class CommonModel extends Model
|
||||
);
|
||||
return $allowedFields;
|
||||
}
|
||||
final public function setFields(array $fields): void
|
||||
{
|
||||
$this->allowedFields = $fields;
|
||||
//수동입력인경우 PrimaryKey추가 (array_unshift는 array의 맨앞에 넣기위함)
|
||||
if (!$this->useAutoIncrement) {
|
||||
array_unshift($this->allowedFields, $this->getPKField());
|
||||
}
|
||||
}
|
||||
final public function getFieldRules(array $fields, array $rules = []): array
|
||||
{
|
||||
foreach ($fields as $field) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user