Jump to content

Doctrine 2 - problems with the "Getting Started XML-Edition" cookbook


Recommended Posts



I've never used Doctrine before, so I decided to try out Doctrine 2 and went to this tutorial, which seems to be the one for starting out: http://www.doctrine-project.org/projects/orm/2.0/docs/cookbook/getting-started-xml-edition/en


At the stage "Generating the Database Schema" however, when running the doctrine tool on the command line I am getting the fatal error: Failed opening required 'Doctrine\Common\Cli\Configuration.php'. Looking at the sample cli-config.php code, this seems to be because the class in question does not exist anywhere within the Doctrine library.


Any ideas on how to get this working?


The code:

$cliConfig = new Doctrine\Common\Cli\Configuration();
$cliConfig->setAttribute('em', $entityManager);

Link to comment
Share on other sites

  • 2 weeks later...

Doctrine 2 is currently under active development. Some interfaces still do change, and the official documentation is not always up-to-date. It concerns especially the additional editions, such as "XML Edition". I think you should take a look at the official manual, because it seems to be updated more frequently, and simply - you have to stay patient.

Link to comment
Share on other sites

This thread is more than a year old.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.