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);
                }
            }
        }
    }
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);
                }
            }
        }
    }
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 ) ; } } } }
Processes a model's data and creates any relations that are hidden within
it using foreign key mapping.

@param array &$data
the model data to process, might be modified
@param \Tx_Oelib_Model $model
the model to create the relations for

@return void
Processes a model s data and creates any relations that are hidden within it using foreign key mapping .