tags:

views:

148

answers:

3

Having never touched Doctrine before (either 1 or 2), I am following this tutorial for Doctrine 2: http://www.doctrine-project.org/projects/orm/2.0/docs/cookbook/getting-started-xml-edition/en

I'm at the point where I use the command line to generate the database schema. This is the cli-config.php file, as per the tutorial:

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

When I run it though, I just get an error:

Fatal error: require(): Failed opening required 'Doctrine\Common\Cli\Configuration.php' 

Because that class referenced by the cli-config.php file doesn't exist. I've also tried blanking the cli-config.php file, which of course doesn't work either - says that "The helper "em" is not defined."

I'm using version 2.0.0BETA3. I know that this is a beta version, so they could have changed some files around, but I can't find that class anywhere.

Any ideas on how to get it working?

A: 

The docs in the XML Getting Started are outdated in this regard. Please see the Tools section in the manual on how to configure the CLI Tool:

http://www.doctrine-project.org/projects/orm/2.0/docs/reference/tools/en

All the rest still works as described. I will update this part asap.

beberlei
A: 
Kurt Krueckeberg
A: 

These instructions are also at [url]http://wp.me/pj3WD-vn[/url]