Ouzo\Db\RelationFactory::newRelation PHP Méthode

newRelation() private static méthode

private static newRelation ( $name, $localKey, $foreignKey, $collection, $params )
    private static function newRelation($name, $localKey, $foreignKey, $collection, $params)
    {
        $class = $params['class'];
        $condition = Arrays::getValue($params, 'conditions', '');
        $order = Arrays::getValue($params, 'order', '');
        return new Relation($name, $class, $localKey, $foreignKey, $collection, $condition, $order);
    }