fix intro.cid and intro.suggest-id

This commit is contained in:
Philipp 2021-10-19 23:11:47 +02:00
parent b4572a5293
commit 44627a0b12
No known key found for this signature in database
GPG key ID: 24A7501396EB5432
5 changed files with 32 additions and 24 deletions

View file

@ -36,8 +36,8 @@ class Introduction extends BaseFactory implements ICanCreateFromTableRow
{
return new Entity\Introduction(
$row['uid'] ?? 0,
$row['suggest-cid'] ?? 0,
$row['contact-id'] ?? null,
$row['contact-id'] ?? 0,
$row['suggest-cid'] ?? null,
!empty($row['knowyou']),
!empty($row['duplex']),
$row['note'] ?? '',
@ -50,9 +50,9 @@ class Introduction extends BaseFactory implements ICanCreateFromTableRow
public function createNew(
int $uid,
int $sid,
int $cid,
string $note,
int $cid = null,
int $sid = null,
bool $knowyou = false,
bool $duplex = false
): Entity\Introduction {