Skip to content

Commit e76cc8c

Browse files
Had type_id for genealogy project
1 parent 1644f21 commit e76cc8c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Utils/GedcomParser.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,13 +121,14 @@ private function getFamily($family)
121121
$husb = $family->getHusb();
122122
$wife = $family->getWife();
123123
$description = NULL;
124+
$type_id = 0;
124125
$children = $family->getChil();
125126
$events = $family->getEven();
126127

127128
$husband_id = (isset($this->persons_id[$husb])) ? $this->persons_id[$husb] : 0;
128129
$wife_id = (isset($this->persons_id[$wife])) ? $this->persons_id[$wife] : 0;
129130

130-
$family = Family::create(compact('husband_id', 'wife_id', 'description'));
131+
$family = Family::create(compact('husband_id', 'wife_id', 'description', 'type_id'));
131132

132133
if ($children !== null) {
133134
foreach ($children as $child) {

0 commit comments

Comments
 (0)