PhpUnit fixes

This commit is contained in:
Dennis Eichhorn 2017-03-12 22:40:21 +01:00
parent 9c64a4ce30
commit 8b7775adca

View File

@ -124,6 +124,11 @@ class ProjectMapper extends DataMapperAbstract
{
try {
$objId = parent::create($obj, $relations);
if($objId === null || !is_scalar($objId)) {
return $objId;
}
$query = new Builder(self::$db);
$query->prefix(self::$db->getPrefix())
->insert(