Lines Matching refs:family
47 $family = Registry::familyFactory()->make($xref, $tree);
48 $family = Auth::checkFamilyAccess($family, true);
55 $old_father = $family->husband();
56 $old_mother = $family->wife();
57 $old_children = $family->children();
71 if ($fact->target() === $family) {
76 foreach ($family->facts(['HUSB', 'WIFE']) as $fact) {
78 $family->deleteFact($fact->id(), true);
84 $new_father->createFact('1 FAMS @' . $family->xref() . '@', true);
86 $family->createFact('1 HUSB @' . $new_father->xref() . '@', true);
94 if ($fact->target() === $family) {
99 foreach ($family->facts(['HUSB', 'WIFE']) as $fact) {
101 $family->deleteFact($fact->id(), true);
107 $new_mother->createFact('1 FAMS @' . $family->xref() . '@', true);
109 $family->createFact('1 WIFE @' . $new_mother->xref() . '@', true);
117 if ($fact->target() === $family) {
122 foreach ($family->facts(['CHIL']) as $fact) {
124 $family->deleteFact($fact->id(), true);
133 $new_child->createFact('1 FAMC @' . $family->xref() . '@', true);
135 $family->createFact('1 CHIL @' . $new_child->xref() . '@', true);
139 return redirect($family->url());