public static function getRelatedMapper($klassInfo, $select, ConnectionInterface $connection)
    {
        $mappers = [];
        $relatedKlassInfo = ArrayHelper::getValue($klassInfo, 'related_klass_infos', []);
        foreach ($relatedKlassInfo as $klassInfo) {
            $mappers[] = new RelatedMappers($klassInfo, $select, $connection);
        }

        return $mappers;
    }
public static function getRelatedMapper($klassInfo, $select, ConnectionInterface $connection)
    {
        $mappers = [];
        $relatedKlassInfo = ArrayHelper::getValue($klassInfo, 'related_klass_infos', []);
        foreach ($relatedKlassInfo as $klassInfo) {
            $mappers[] = new RelatedMappers($klassInfo, $select, $connection);
        }

        return $mappers;
    }
public static function getRelatedMapper ( $ klassInfo , $ select , ConnectionInterface $ connection ) { $ mappers = [ ] ; $ relatedKlassInfo = ArrayHelper :: getValue ( $ klassInfo , 'related_klass_infos' , [ ] ) ; foreach ( $ relatedKlassInfo as $ klassInfo ) { $ mappers [ ] = new RelatedMappers ( $ klassInfo , $ select , $ connection ) ; } return $ mappers ; }
Creates mappers to use for related model.

@param            $klassInfo
@param Connection $connection

@return RelatedMappers[]

@since  1.1.0

@author Eddilbert Macharia (http://eddmash.com) <edd.cowan@gmail.com>

@throws \Eddmash\PowerOrm\Exception\KeyError
Creates mappers to use for related model .