Build the RelationMap objects for this table relationships
437568
public function buildRelations()
    {
        $this->addRelation('Sport', '\\gossi\\trixionary\\model\\Sport', RelationMap::MANY_TO_ONE, array (
  0 =>
  array (
    0 => ':sport_id',
    1 => ':id',
  ),
), 'CASCADE', null, null, false);
        $this->addRelation('VariationOf', '\\gossi\\trixionary\\model\\Skill', RelationMap::MANY_TO_ONE, array (
  0 =>
  array (
    0 => ':variation_of_id',
    1 => ':id',
  ),
), null, null, null, false);
        $this->addRelation('MultipleOf', '\\gossi\\trixionary\\model\\Skill', RelationMap::MANY_TO_ONE, array (
  0 =>
  array (
    0 => ':multiple_of_id',
    1 => ':id',
  ),
), null, null, null, false);
        $this->addRelation('Object', '\\gossi\\trixionary\\model\\Object', RelationMap::MANY_TO_ONE, array (
  0 =>
  array (
    0 => ':object_id',
    1 => ':id',
  ),
), null, null, null, false);
        $this->addRelation('StartPosition', '\\gossi\\trixionary\\model\\Position', RelationMap::MANY_TO_ONE, array (
  0 =>
  array (
    0 => ':start_position_id',
    1 => ':id',
  ),
), null, null, null, false);
        $this->addRelation('EndPosition', '\\gossi\\trixionary\\model\\Position', RelationMap::MANY_TO_ONE, array (
  0 =>
  array (
    0 => ':end_position_id',
    1 => ':id',
  ),
), null, null, null, false);
        $this->addRelation('FeaturedPicture', '\\gossi\\trixionary\\model\\Picture', RelationMap::MANY_TO_ONE, array (
  0 =>
  array (
    0 => ':picture_id',
    1 => ':id',
  ),
), 'SET NULL', null, null, false);
        $this->addRelation('FeaturedVideo', '\\gossi\\trixionary\\model\\Video', RelationMap::MANY_TO_ONE, array (
  0 =>
  array (
    0 => ':video_id',
    1 => ':id',
  ),
), 'SET NULL', null, null, false);
        $this->addRelation('FeaturedTutorial', '\\gossi\\trixionary\\model\\Video', RelationMap::MANY_TO_ONE, array (
  0 =>
  array (
    0 => ':tutorial_id',
    1 => ':id',
  ),
), 'SET NULL', null, null, false);
        $this->addRelation('KstrukturRoot', '\\gossi\\trixionary\\model\\Kstruktur', RelationMap::MANY_TO_ONE, array (
  0 =>
  array (
    0 => ':kstruktur_id',
    1 => ':id',
  ),
), null, null, null, false);
        $this->addRelation('FunctionPhaseRoot', '\\gossi\\trixionary\\model\\FunctionPhase', RelationMap::MANY_TO_ONE, array (
  0 =>
  array (
    0 => ':function_phase_id',
    1 => ':id',
  ),
), null, null, null, false);
        $this->addRelation('Variation', '\\gossi\\trixionary\\model\\Skill', RelationMap::ONE_TO_MANY, array (
  0 =>
  array (
    0 => ':variation_of_id',
    1 => ':id',
  ),
), null, null, 'Variations', false);
        $this->addRelation('Multiple', '\\gossi\\trixionary\\model\\Skill', RelationMap::ONE_TO_MANY, array (
  0 =>
  array (
    0 => ':multiple_of_id',
    1 => ':id',
  ),
), null, null, 'Multiples', false);
        $this->addRelation('LineageRelatedBySkillId', '\\gossi\\trixionary\\model\\Lineage', RelationMap::ONE_TO_MANY, array (
  0 =>
  array (
    0 => ':skill_id',
    1 => ':id',
  ),
), 'CASCADE', null, 'LineagesRelatedBySkillId', false);
        $this->addRelation('LineageRelatedByAncestorId', '\\gossi\\trixionary\\model\\Lineage', RelationMap::ONE_TO_MANY, array (
  0 =>
  array (
    0 => ':ancestor_id',
    1 => ':id',
  ),
), null, null, 'LineagesRelatedByAncestorId', false);
        $this->addRelation('Child', '\\gossi\\trixionary\\model\\SkillDependency', RelationMap::ONE_TO_MANY, array (
  0 =>
  array (
    0 => ':dependency_id',
    1 => ':id',
  ),
), 'CASCADE', null, 'Children', false);
        $this->addRelation('Parent', '\\gossi\\trixionary\\model\\SkillDependency', RelationMap::ONE_TO_MANY, array (
  0 =>
  array (
    0 => ':parent_id',
    1 => ':id',
  ),
), 'CASCADE', null, 'Parents', false);
        $this->addRelation('Part', '\\gossi\\trixionary\\model\\SkillPart', RelationMap::ONE_TO_MANY, array (
  0 =>
  array (
    0 => ':part_id',
    1 => ':id',
  ),
), 'CASCADE', null, 'Parts', false);
        $this->addRelation('Composite', '\\gossi\\trixionary\\model\\SkillPart', RelationMap::ONE_TO_MANY, array (
  0 =>
  array (
    0 => ':composite_id',
    1 => ':id',
  ),
), 'CASCADE', null, 'Composites', false);
        $this->addRelation('SkillGroup', '\\gossi\\trixionary\\model\\SkillGroup', RelationMap::ONE_TO_MANY, array (
  0 =>
  array (
    0 => ':skill_id',
    1 => ':id',
  ),
), 'CASCADE', null, 'SkillGroups', false);
        $this->addRelation('Picture', '\\gossi\\trixionary\\model\\Picture', RelationMap::ONE_TO_MANY, array (
  0 =>
  array (
    0 => ':skill_id',
    1 => ':id',
  ),
), 'CASCADE', null, 'Pictures', false);
        $this->addRelation('Video', '\\gossi\\trixionary\\model\\Video', RelationMap::ONE_TO_MANY, array (
  0 =>
  array (
    0 => ':skill_id',
    1 => ':id',
  ),
), 'CASCADE', null, 'Videos', false);
        $this->addRelation('SkillReference', '\\gossi\\trixionary\\model\\SkillReference', RelationMap::ONE_TO_MANY, array (
  0 =>
  array (
    0 => ':skill_id',
    1 => ':id',
  ),
), 'CASCADE', null, 'SkillReferences', false);
        $this->addRelation('StructureNode', '\\gossi\\trixionary\\model\\StructureNode', RelationMap::ONE_TO_MANY, array (
  0 =>
  array (
    0 => ':skill_id',
    1 => ':id',
  ),
), 'CASCADE', null, 'StructureNodes', false);
        $this->addRelation('KstrukturRelatedBySkillId', '\\gossi\\trixionary\\model\\Kstruktur', RelationMap::ONE_TO_MANY, array (
  0 =>
  array (
    0 => ':skill_id',
    1 => ':id',
  ),
), 'CASCADE', null, 'KstruktursRelatedBySkillId', false);
        $this->addRelation('FunctionPhaseRelatedBySkillId', '\\gossi\\trixionary\\model\\FunctionPhase', RelationMap::ONE_TO_MANY, array (
  0 =>
  array (
    0 => ':skill_id',
    1 => ':id',
  ),
), 'CASCADE', null, 'FunctionPhasesRelatedBySkillId', false);
        $this->addRelation('SkillVersion', '\\gossi\\trixionary\\model\\SkillVersion', RelationMap::ONE_TO_MANY, array (
  0 =>
  array (
    0 => ':id',
    1 => ':id',
  ),
), 'CASCADE', null, 'SkillVersions', false);
        $this->addRelation('SkillRelatedByParentId', '\\gossi\\trixionary\\model\\Skill', RelationMap::MANY_TO_MANY, array(), 'CASCADE', null, 'SkillsRelatedByParentId');
        $this->addRelation('SkillRelatedByDependencyId', '\\gossi\\trixionary\\model\\Skill', RelationMap::MANY_TO_MANY, array(), 'CASCADE', null, 'SkillsRelatedByDependencyId');
        $this->addRelation('SkillRelatedByCompositeId', '\\gossi\\trixionary\\model\\Skill', RelationMap::MANY_TO_MANY, array(), 'CASCADE', null, 'SkillsRelatedByCompositeId');
        $this->addRelation('SkillRelatedByPartId', '\\gossi\\trixionary\\model\\Skill', RelationMap::MANY_TO_MANY, array(), 'CASCADE', null, 'SkillsRelatedByPartId');
        $this->addRelation('Group', '\\gossi\\trixionary\\model\\Group', RelationMap::MANY_TO_MANY, array(), 'CASCADE', null, 'Groups');
        $this->addRelation('Reference', '\\gossi\\trixionary\\model\\Reference', RelationMap::MANY_TO_MANY, array(), 'CASCADE', null, 'References');
    }
276138
public static function buildTableMap()
    {
      $dbMap = Propel::getServiceContainer()->getDatabaseMap(DealerContentVersionTableMap::DATABASE_NAME);
      if (!$dbMap->hasTable(DealerContentVersionTableMap::TABLE_NAME)) {
        $dbMap->addTableObject(new DealerContentVersionTableMap());
      }
    }
844212
public static function buildTableMap()
    {
        $dbMap = Propel::getServiceContainer()->getDatabaseMap(SportTableMap::DATABASE_NAME);
        if (!$dbMap->hasTable(SportTableMap::TABLE_NAME)) {
            $dbMap->addTableObject(new SportTableMap());
        }
    }
1322867
public static function buildTableMap()
    {
      $dbMap = Propel::getDatabaseMap(BaseRolePeer::DATABASE_NAME);
      if (!$dbMap->hasTable(BaseRolePeer::TABLE_NAME)) {
        $dbMap->addTableObject(new \Slashworks\BackendBundle\Model\map\RoleTableMap());
      }
    }
708882
public static function buildTableMap()
    {
      $dbMap = Propel::getServiceContainer()->getDatabaseMap(PersonTableMap::DATABASE_NAME);
      if (!$dbMap->hasTable(PersonTableMap::TABLE_NAME)) {
        $dbMap->addTableObject(new PersonTableMap());
      }
    }
226960
function buildLeftJoinRelations () {
    // if no left joins specified do nothing
    if (!this.args.left || !this.args.left.join) {
        return
    }
    // get join as array
    var joins = Array.isArray(this.args.left.join) ? this.args.left.join : [this.args.left.join]
    // add each join
    _.each(joins, join => {
        // join may be passed as string that is name of relation to join on
        if (typeof join === 'string') {
            join = {
                relation: join,
            }
        }
        // require join to be object
        assert.ok(join && typeof join === 'object', 'left join must be string or object')
        // set the left join flag to true
        join.left = true
        // add join to query
        this.buildJoinRelation(join)
    })
}
582321
public static function buildTableMap()
    {
      $dbMap = Propel::getServiceContainer()->getDatabaseMap(DealerShedulesTableMap::DATABASE_NAME);
      if (!$dbMap->hasTable(DealerShedulesTableMap::TABLE_NAME)) {
        $dbMap->addTableObject(new DealerShedulesTableMap());
      }
    }
438225
public function buildRelations()
    {
        $this->addRelation('Country', '\\Thelia\\Model\\Country', RelationMap::MANY_TO_ONE, array('country_id' => 'id', ), 'CASCADE', null);
        $this->addRelation('DealerShedules', '\\Dealer\\Model\\DealerShedules', RelationMap::ONE_TO_MANY, array('id' => 'dealer_id', ), 'CASCADE', null, 'DealerSheduless');
        $this->addRelation('DealerContact', '\\Dealer\\Model\\DealerContact', RelationMap::ONE_TO_MANY, array('id' => 'dealer_id', ), 'CASCADE', null, 'DealerContacts');
        $this->addRelation('DealerContent', '\\Dealer\\Model\\DealerContent', RelationMap::ONE_TO_MANY, array('id' => 'dealer_id', ), 'CASCADE', 'RESTRICT', 'DealerContents');
        $this->addRelation('DealerFolder', '\\Dealer\\Model\\DealerFolder', RelationMap::ONE_TO_MANY, array('id' => 'dealer_id', ), 'CASCADE', 'RESTRICT', 'DealerFolders');
        $this->addRelation('DealerBrand', '\\Dealer\\Model\\DealerBrand', RelationMap::ONE_TO_MANY, array('id' => 'dealer_id', ), 'CASCADE', 'RESTRICT', 'DealerBrands');
        $this->addRelation('DealerProduct', '\\Dealer\\Model\\DealerProduct', RelationMap::ONE_TO_MANY, array('id' => 'dealer_id', ), 'CASCADE', 'RESTRICT', 'DealerProducts');
        $this->addRelation('DealerAdmin', '\\Dealer\\Model\\DealerAdmin', RelationMap::ONE_TO_MANY, array('id' => 'dealer_id', ), 'CASCADE', 'RESTRICT', 'DealerAdmins');
        $this->addRelation('DealerI18n', '\\Dealer\\Model\\DealerI18n', RelationMap::ONE_TO_MANY, array('id' => 'id', ), 'CASCADE', null, 'DealerI18ns');
        $this->addRelation('DealerVersion', '\\Dealer\\Model\\DealerVersion', RelationMap::ONE_TO_MANY, array('id' => 'id', ), 'CASCADE', null, 'DealerVersions');
    }
811693
public static function buildTableMap()
    {
      $dbMap = Propel::getServiceContainer()->getDatabaseMap(PersonI18nTableMap::DATABASE_NAME);
      if (!$dbMap->hasTable(PersonI18nTableMap::TABLE_NAME)) {
        $dbMap->addTableObject(new PersonI18nTableMap());
      }
    }
185816
public static function buildTableMap()
    {
      $dbMap = Propel::getServiceContainer()->getDatabaseMap(DealerAdminVersionTableMap::DATABASE_NAME);
      if (!$dbMap->hasTable(DealerAdminVersionTableMap::TABLE_NAME)) {
        $dbMap->addTableObject(new DealerAdminVersionTableMap());
      }
    }
571438
public static function buildTableMap()
    {
        $dbMap = Propel::getServiceContainer()->getDatabaseMap(StructureNodeTableMap::DATABASE_NAME);
        if (!$dbMap->hasTable(StructureNodeTableMap::TABLE_NAME)) {
            $dbMap->addTableObject(new StructureNodeTableMap());
        }
    }
907153
public static function buildTableMap()
    {
        $dbMap = Propel::getServiceContainer()->getDatabaseMap(PlayerTableMap::DATABASE_NAME);
        if (!$dbMap->hasTable(PlayerTableMap::TABLE_NAME)) {
            $dbMap->addTableObject(new PlayerTableMap());
        }
    }
240471
public static function buildTableMap()
    {
        $dbMap = Propel::getServiceContainer()->getDatabaseMap(MapTableMap::DATABASE_NAME);
        if (!$dbMap->hasTable(MapTableMap::TABLE_NAME)) {
            $dbMap->addTableObject(new MapTableMap());
        }
    }
1115409
def _render_relationships(self, resource):
        """"""
        relationships = {}
        related_models = resource.__mapper__.relationships.keys()
        primary_key_val = getattr(resource, self.primary_key)
        if self.dasherize:
            mapped_relationships = {
                x: dasherize(underscore(x)) for x in related_models}
        else:
            mapped_relationships = {x: x for x in related_models}

        for model in related_models:
            relationships[mapped_relationships[model]] = {
                'links': {
                    'self': '/{}/{}/relationships/{}'.format(
                        resource.__tablename__,
                        primary_key_val,
                        mapped_relationships[model]),
                    'related': '/{}/{}/{}'.format(
                        resource.__tablename__,
                        primary_key_val,
                        mapped_relationships[model])
                }
            }

        return relationships
51589
public static function buildTableMap()
    {
      $dbMap = Propel::getServiceContainer()->getDatabaseMap(DealerVersionTableMap::DATABASE_NAME);
      if (!$dbMap->hasTable(DealerVersionTableMap::TABLE_NAME)) {
        $dbMap->addTableObject(new DealerVersionTableMap());
      }
    }
794652
function initRelations (args) {
    // create map of relations
    this.relations = {}
    // get relations from args
    var relations = requireValidOptionalObject(args.relations)
    // validate and add relations
    _.each(relations, (relation, relatedModelName) => {
        this.relations[relatedModelName] = relation
    })
}
32543
protected function buildRelationQuery()
    {
        $args = func_get_args();

        list($relation, $args[0]) = explode('.', $this->column);

        return ['whereHas' => [$relation, function ($relation) use ($args) {
            call_user_func_array([$relation, $this->query], $args);
        }]];
    }