|
@@ -36,11 +36,11 @@ discard block |
|
|
block discarded – undo |
|
36
|
36
|
$individuals->parents()->attach($individualsList); |
|
37
|
37
|
Individual::find($mother_id)->families()->attach($family->id, ['type_id' => 2]); |
|
38
|
38
|
|
|
39
|
|
- $father = Individual::select('id','first_name','last_name')->where('id', '=', $father_id)->first(); |
|
40
|
|
- $mother = Individual::select('id','first_name','last_name')->where('id', '=', $father_id)->first(); |
|
|
39
|
+ $father = Individual::select('id', 'first_name', 'last_name')->where('id', '=', $father_id)->first(); |
|
|
40
|
+ $mother = Individual::select('id', 'first_name', 'last_name')->where('id', '=', $father_id)->first(); |
|
41
|
41
|
|
|
42
|
|
- $father_full_name = $father->first_name . ' '. $father->last_name; |
|
43
|
|
- $mother_full_name = $father->first_name . ' '. $father->last_name; |
|
|
42
|
+ $father_full_name = $father->first_name.' '.$father->last_name; |
|
|
43
|
+ $mother_full_name = $father->first_name.' '.$father->last_name; |
|
44
|
44
|
|
|
45
|
45
|
$father_person = Person::where('name', '=', $father_full_name) |
|
46
|
46
|
->first(); |
|
@@ -50,7 +50,7 @@ discard block |
|
|
block discarded – undo |
|
50
|
50
|
foreach ($individualsList as $individual) { |
|
51
|
51
|
|
|
52
|
52
|
$individual = Individual::find($individual); |
|
53
|
|
- $individual_full_name = $individual->first_name . ' ' . $individual->last_name; |
|
|
53
|
+ $individual_full_name = $individual->first_name.' '.$individual->last_name; |
|
54
|
54
|
$person = Person::where('name', '=', $individual_full_name) |
|
55
|
55
|
->first(); |
|
56
|
56
|
$person->father()->associate($father_person)->save(); |
|
@@ -96,11 +96,11 @@ discard block |
|
|
block discarded – undo |
|
96
|
96
|
Individual::find($mother_id)->families()->attach($family->id, ['type_id' => 2]); |
|
97
|
97
|
|
|
98
|
98
|
|
|
99
|
|
- $father = Individual::select('id','first_name','last_name')->where('id', '=', $father_id)->first(); |
|
100
|
|
- $mother = Individual::select('id','first_name','last_name')->where('id', '=', $father_id)->first(); |
|
|
99
|
+ $father = Individual::select('id', 'first_name', 'last_name')->where('id', '=', $father_id)->first(); |
|
|
100
|
+ $mother = Individual::select('id', 'first_name', 'last_name')->where('id', '=', $father_id)->first(); |
|
101
|
101
|
|
|
102
|
|
- $father_full_name = $father->first_name . ' '. $father->last_name; |
|
103
|
|
- $mother_full_name = $father->first_name . ' '. $father->last_name; |
|
|
102
|
+ $father_full_name = $father->first_name.' '.$father->last_name; |
|
|
103
|
+ $mother_full_name = $father->first_name.' '.$father->last_name; |
|
104
|
104
|
|
|
105
|
105
|
$father_person = Person::where('name', '=', $father_full_name) |
|
106
|
106
|
->first(); |
|
@@ -110,7 +110,7 @@ discard block |
|
|
block discarded – undo |
|
110
|
110
|
foreach ($individualsList as $individual) { |
|
111
|
111
|
|
|
112
|
112
|
$individual = Individual::find($individual); |
|
113
|
|
- $individual_full_name = $individual->first_name . ' ' . $individual->last_name; |
|
|
113
|
+ $individual_full_name = $individual->first_name.' '.$individual->last_name; |
|
114
|
114
|
$person = Person::where('name', '=', $individual_full_name) |
|
115
|
115
|
->first(); |
|
116
|
116
|
$person->father()->associate($father_person)->save(); |