protected function createRelations(array &$data, \Tx_Oelib_Model $model)
    {
        foreach (array_keys($this->relations) as $key) {
            if ($this->isOneToManyRelationConfigured($key)) {
                $this->createOneToManyRelation($data, $key, $model);
            } elseif ($this->isManyToOneRelationConfigured($key)) {
                $this->createManyToOneRelation($data, $key);
            } else {
                if ($this->isManyToManyRelationConfigured($key)) {
                    $this->createMToNRelation($data, $key, $model);
                } else {
                    $this->createCommaSeparatedRelation($data, $key, $model);
                }
            }
        }
    }