mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-28 00:48:40 +00:00
Fix model create para order
This commit is contained in:
parent
bcde94b1ea
commit
a9186d802e
|
|
@ -325,7 +325,7 @@ class DataMapperAbstract implements DataMapperInterface
|
|||
self::extend(__CLASS__);
|
||||
|
||||
$reflectionClass = new \ReflectionClass(get_class($obj));
|
||||
$objId = self::createModel($reflectionClass, $obj);
|
||||
$objId = self::createModel($obj, $reflectionClass);
|
||||
self::setObjectId($reflectionClass, $obj, $objId);
|
||||
|
||||
if ($relations === RelationType::ALL) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user