mirror of
https://github.com/Karaka-Management/oms-Editor.git
synced 2026-02-13 16:58:44 +00:00
PhpUnit fixes
This commit is contained in:
parent
0201dfa698
commit
b8498f4ab7
|
|
@ -87,6 +87,11 @@ class EditorDocMapper extends DataMapperAbstract
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$objId = parent::create($obj, $relations);
|
$objId = parent::create($obj, $relations);
|
||||||
|
|
||||||
|
if($objId === null || !is_scalar($objId)) {
|
||||||
|
return $objId;
|
||||||
|
}
|
||||||
|
|
||||||
$query = new Builder(self::$db);
|
$query = new Builder(self::$db);
|
||||||
$query->prefix(self::$db->getPrefix())
|
$query->prefix(self::$db->getPrefix())
|
||||||
->insert(
|
->insert(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user