public function attachEntities(array $entities)
    {
        foreach ($entities as $name => $entitie) {
            $this->attachEntity($entitie, $name);
        }
    }
public function attachEntities(array $entities)
    {
        foreach ($entities as $name => $entitie) {
            $this->attachEntity($entitie, $name);
        }
    }
public function attachEntities ( array $ entities ) { foreach ( $ entities as $ name => $ entitie ) { $ this -> attachEntity ( $ entitie , $ name ) ; } }
add array of entities

the given entities will be wrapped in a entity containers.
this entity containers are registred in a map storage by a given entity name.
the entity names are the keys of the given array.

@param     array         $entities       array of entities, the key of the array will be used as entity name
add array of entities