Fixed things for WarehouseOrder

This commit is contained in:
Luca Haid
2025-03-11 17:47:00 +01:00
parent 8b989fd135
commit a6ab876bf0
6 changed files with 60 additions and 43 deletions

View File

@@ -2,6 +2,7 @@
class TTCrudBaseModel {
public function __construct($data = []) {
if (empty($data)) return;
foreach ($data as $field => $value) {
if (property_exists(get_called_class(), $field)) {
$this->$field = $value;