/** * @Given there is an entity with this information: */ public function thereIsAnEntityWithThisInformation(TableNode $info) { $info = $info->getRowsHash(); $entity = new Entity(); $entity->setId((int) $info['Id']); $entity->setName($info['Name']); $this->entityRepository->save($entity); }