Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fixed entities path #652

Merged
merged 1 commit into from

2 participants

Danny Kopping Marco Pivetta
Danny Kopping

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.

Danny Kopping 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
Danny Kopping

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
Marco Pivetta Ocramius merged commit cc24ac4 into from
Danny Kopping

Damn you guys are fast :)

Danny Kopping dannykopping deleted the branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 26, 2013
  1. Danny Kopping

    Fixed entities path

    dannykopping authored
    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.
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  docs/en/tutorials/getting-started.rst
2  docs/en/tutorials/getting-started.rst
View
@@ -137,7 +137,7 @@ step:
// Create a simple "default" Doctrine ORM configuration for Annotations
$isDevMode = true;
- $config = Setup::createAnnotationMetadataConfiguration(array(__DIR__."/entities"), $isDevMode);
+ $config = Setup::createAnnotationMetadataConfiguration(array(__DIR__."/src"), $isDevMode);
// or if you prefer yaml or XML
//$config = Setup::createXMLMetadataConfiguration(array(__DIR__."/config/xml"), $isDevMode);
//$config = Setup::createYAMLMetadataConfiguration(array(__DIR__."/config/yaml"), $isDevMode);
Something went wrong with that request. Please try again.