Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Fix getting started doc to work with current version #679

Merged
merged 1 commit into from about 1 year ago

2 participants

Antonio J. García Lagar Marco Pivetta
Antonio J. García Lagar

The cli-config.php example provided at the getting started tutorial does not work with doctrine 2.4.

Marco Pivetta Ocramius merged commit 4e8b787 into from
Marco Pivetta Ocramius closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

May 28, 2013
Antonio J. García Lagar ajgarlag Fix getting started doc to work with current version c64c149
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 1 addition and 3 deletions. Show diff stats Hide diff stats

  1. +1 3 docs/en/tutorials/getting-started.rst
4 docs/en/tutorials/getting-started.rst
Source Rendered
@@ -187,9 +187,7 @@ doctrine command. Its a fairly simple file:
187 187 // cli-config.php
188 188 require_once "bootstrap.php";
189 189
190   - $helperSet = new \Symfony\Component\Console\Helper\HelperSet(array(
191   - 'em' => new \Doctrine\ORM\Tools\Console\Helper\EntityManagerHelper($entityManager)
192   - ));
  190 + return \Doctrine\ORM\Tools\Console\ConsoleRunner::createHelperSet($entityManager);
193 191
194 192 You can then change into your project directory and call the
195 193 Doctrine command-line tool:

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.