| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | public static function read($conn, \Gedcom\Record\Refn $refn, $group = '', $group_id = 0) |
||
| 15 | { |
||
| 16 | $_refn = $refn->getRefn(); |
||
| 17 | $type = $refn->getType(); |
||
| 18 | // store refn |
||
| 19 | $key = ['group'=>$group, 'gid'=>$group_id, 'refn'=>$_refn, 'type'=>$type]; |
||
| 20 | $data = ['group'=>$group, 'gid'=>$group_id, 'refn'=>$_refn, 'type'=>$type]; |
||
| 21 | $record = MRefn::on($conn)->updateOrCreate($key, $data); |
||
|
|
|||
| 22 | } |
||
| 24 |