159 public function fill(array $data): void
161 $fields = $this->fieldMirror();
162 foreach ($data as $field => $value)
164 if (isset($fields[
'flags'][$field]))
168 $this->{$field} = $value;
172 $this->{$field} = ($value ===
'Y');
176 foreach ($fields[
'flags'] as $field => [$key,,])
178 if (isset($data[$key]))
180 if (is_bool($data[$key]))
182 $this->{$field} = $data[$key];
186 $this->{$field} = ($data[$key] ===
'Y');