app/Individual.php
public static function load(Tree $tree, array $xrefs): void
    {
        $rows = DB::table('individuals')
            ->where('i_file', '=', $tree->id())
            ->whereIn('i_id', array_unique($xrefs))
            ->select(['i_id AS xref', 'i_gedcom AS gedcom'])
            ->get();

        foreach ($rows as $row) {
            self::getInstance($row->xref, $tree, $row->gedcom);
        }
    }
public static function load(Tree $tree, array $xrefs): void
    {
        $rows = DB::table('individuals')
            ->where('i_file', '=', $tree->id())
            ->whereIn('i_id', array_unique($xrefs))
            ->select(['i_id AS xref', 'i_gedcom AS gedcom'])
            ->get();

        foreach ($rows as $row) {
            self::getInstance($row->xref, $tree, $row->gedcom);
        }
    }
public static function load ( Tree $ tree , array $ xrefs ) : void { $ rows = DB :: table ( 'individuals' ) -> where ( 'i_file' , '=' , $ tree -> id ( ) ) -> whereIn ( 'i_id' , array_unique ( $ xrefs ) ) -> select ( [ 'i_id AS xref' , 'i_gedcom AS gedcom' ] ) -> get ( ) ; foreach ( $ rows as $ row ) { self :: getInstance ( $ row -> xref , $ tree , $ row -> gedcom ) ; } }
Sometimes, we'll know in advance that we need to load a set of records.
Typically when we load families and their members.

@param Tree     $tree
@param string[] $xrefs

@return void
Sometimes we ll know in advance that we need to load a set of records . Typically when we load families and their members .