Fixed entities path #652

Merged
merged 1 commit into from Apr 26, 2013

Projects

None yet

2 participants

@dannykopping
Contributor

In the tutorial, the user is told to create a new file in the /src folder, and the /entities folder is never referenced. Updating the SQLite schema according to the tutorial fails with the 'No Metadata Classes to process.' message. Changing the folder to /src fixes this, ostensibly.

@dannykopping dannykopping Fixed entities path
In the tutorial, the user is told to create a new file in the '/src' folder, and the 'entities' folder is never referenced. Updating the SQLite schema according to the tutorial fails with the 'No Metadata Classes to process.' message. Changing the folder to '/src' fixes this, ostensibly.
408eef1
@dannykopping
Owner

In the accompanying example project on GitHub, this change that I have made in the tutorial is already present:
https://github.com/doctrine/doctrine2-orm-tutorial/blob/master/bootstrap.php

// Create a simple "default" Doctrine ORM configuration for XML Mapping
$isDevMode = true;
$config = Setup::createAnnotationMetadataConfiguration(array(__DIR__."/src"), $isDevMode);
// or if you prefer yaml or annotations
@Ocramius Ocramius merged commit cc24ac4 into doctrine:master Apr 26, 2013
@dannykopping
Contributor

Damn you guys are fast :)

@dannykopping dannykopping deleted the dannykopping:patch-1 branch Apr 26, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment