mirror of
https://github.com/Karaka-Management/oms-ProjectManagement.git
synced 2026-02-15 15:18:39 +00:00
PhpUnit fixes
This commit is contained in:
parent
9c64a4ce30
commit
8b7775adca
|
|
@ -124,6 +124,11 @@ class ProjectMapper 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