Skip to content

Commit b9e21c8

Browse files
Add type_id and is_active.
1 parent 23188b1 commit b9e21c8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Utils/GedcomParser.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,13 +437,15 @@ private function getFamily($family)
437437
// string
438438
$nchi = $family->getNchi();
439439
$rin = $family->getRin();
440+
$type_id = 1;
440441

441442
// array
442443
$subm = $family->getSubm();
443444
$_slgs = $family->getSlgs();
444445

445446
$description = null;
446447
$type_id = 0;
448+
$is_active = 1;
447449

448450
$children = $family->getChil();
449451
$events = $family->getAllEven();
@@ -459,7 +461,7 @@ private function getFamily($family)
459461
$wife_id = (isset($this->persons_id[$wife])) ? $this->persons_id[$wife] : 0;
460462

461463
$family = Family::on($this->conn)->updateOrCreate(
462-
compact('husband_id', 'wife_id', 'description', 'nchi', 'rin')
464+
compact('husband_id', 'wife_id', 'description', 'nchi', 'rin', 'type_id', 'is_active')
463465
);
464466

465467
if ($children !== null) {

0 commit comments

Comments
 (0)