mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-10 14:08:40 +00:00
add space
This commit is contained in:
parent
b991f3f865
commit
3afc442cf0
|
|
@ -1937,6 +1937,7 @@ class DataMapperAbstract implements DataMapperInterface
|
||||||
// todo: this only works for belongsTo not for many-to-many relations. Implement many-to-many
|
// todo: this only works for belongsTo not for many-to-many relations. Implement many-to-many
|
||||||
$obj[$value] = self::get(self::getPrimaryKeyBy($value, self::getColumnByMember($ref)), $relations, $fill);
|
$obj[$value] = self::get(self::getPrimaryKeyBy($value, self::getColumnByMember($ref)), $relations, $fill);
|
||||||
}
|
}
|
||||||
|
|
||||||
return count($obj) === 1 ? reset($obj) : $obj;
|
return count($obj) === 1 ? reset($obj) : $obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1967,6 +1968,7 @@ class DataMapperAbstract implements DataMapperInterface
|
||||||
// todo: this only works for belongsTo not for many-to-many relations. Implement many-to-many
|
// todo: this only works for belongsTo not for many-to-many relations. Implement many-to-many
|
||||||
$obj[$value] = self::getArray(self::getPrimaryKeyBy($value, self::getColumnByMember($ref)), $relations, $fill);
|
$obj[$value] = self::getArray(self::getPrimaryKeyBy($value, self::getColumnByMember($ref)), $relations, $fill);
|
||||||
}
|
}
|
||||||
|
|
||||||
return count($obj) === 1 ? reset($obj) : $obj;
|
return count($obj) === 1 ? reset($obj) : $obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user