/**
  * @Given existen las siguientes variables logĂ­sticas:
  */
 public function createTableLogisticVariables(TableNode $tableNode)
 {
     $em = $this->getEntityManager();
     foreach ($tableNode->getHash() as $tableLogisticVariablesHash) {
         $tableLogisticVariable = new TableLogisticVariables();
         $tableLogisticVariable->setLogisticIndicator($tableLogisticVariablesHash['indicador_logĂ­stico']);
         $tableLogisticVariable->setDescription($tableLogisticVariablesHash['descripcion']);
         //We obtain the corresponding identifier to the trademark name
         $em = $this->getEntityManager();
         $trademark = $em->getRepository('AppBundle:Trademark')->findOneBy(array('name' => $tableLogisticVariablesHash['marca']));
         $tableLogisticVariable->setTrademark($trademark);
         $em->persist($tableLogisticVariable);
     }
     $em->flush();
 }