Jump to content

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


gnuffo1

Recommended Posts

Hi,

 

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);

  • 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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.