protected function createGroups($groups, WorkflowDefinition $definition, $clear = false)
    {
        // Create the necessary relation in WorkflowDefinition_Groups
        $source = array('groups' => $groups);
        $this->addManyManyToObject($definition, $source, $clear);
    }
protected function createGroups($groups, WorkflowDefinition $definition, $clear = false)
    {
        // Create the necessary relation in WorkflowDefinition_Groups
        $source = array('groups' => $groups);
        $this->addManyManyToObject($definition, $source, $clear);
    }
protected function createGroups ( $ groups , WorkflowDefinition $ definition , $ clear = false ) { // Create the necessary relation in WorkflowDefinition_Groups $ source = array ( 'groups' => $ groups ) ; $ this -> addManyManyToObject ( $ definition , $ source , $ clear ) ; }
Create a WorkflowDefinition->Groups relation based on template data, But only if the related groups from the
export, can be foud in the target environment's DB.

Note: The template gives us a Group Title to work with rther than an ID as it's arguably
more likely that Group titles will be the same between environments than their IDs.

@param array $groups
@param WorkflowDefinition $definition
@param boolean $clear
@return void
Create a WorkflowDefinition - > Groups relation based on template data But only if the related groups from the export can be foud in the target environment s DB .