Fixed things for WarehouseOrder
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user