protected function createRelatedEntities($relations)
    {
        $entitiesToCreate = $this->aggregate->getNonExistingRelated($relations);

        foreach ($entitiesToCreate as $aggregate) {
            $this->createStoreCommand($aggregate)->execute();
        }
    }
protected function createRelatedEntities($relations)
    {
        $entitiesToCreate = $this->aggregate->getNonExistingRelated($relations);

        foreach ($entitiesToCreate as $aggregate) {
            $this->createStoreCommand($aggregate)->execute();
        }
    }
protected function createRelatedEntities ( $ relations ) { $ entitiesToCreate = $ this -> aggregate -> getNonExistingRelated ( $ relations ) ; foreach ( $ entitiesToCreate as $ aggregate ) { $ this -> createStoreCommand ( $ aggregate ) -> execute ( ) ; } }
Check for existence and create non-existing related entities.

@param  array

@throws \InvalidArgumentException

@return void
Check for existence and create non - existing related entities .