mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-14 15:38: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__);
|
self::extend(__CLASS__);
|
||||||
|
|
||||||
$reflectionClass = new \ReflectionClass(get_class($obj));
|
$reflectionClass = new \ReflectionClass(get_class($obj));
|
||||||
$objId = self::createModel($reflectionClass, $obj);
|
$objId = self::createModel($obj, $reflectionClass);
|
||||||
self::setObjectId($reflectionClass, $obj, $objId);
|
self::setObjectId($reflectionClass, $obj, $objId);
|
||||||
|
|
||||||
if ($relations === RelationType::ALL) {
|
if ($relations === RelationType::ALL) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user