Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ordering of psr-4 namespaces can break code generation #37

Open
edmondscommerce opened this issue Apr 20, 2018 · 0 comments
Open

Ordering of psr-4 namespaces can break code generation #37

edmondscommerce opened this issue Apr 20, 2018 · 0 comments
Labels

Comments

@edmondscommerce
Copy link
Owner

If you specify your namespaces as:

    "autoload": {
        "psr-4": {
            "App\\": ["src/"],
            "EdmondsCommerce\\Vault\\": ["src/"]
        }
    }

Rather than:

    "autoload": {
        "psr-4": {
            "EdmondsCommerce\\Vault\\": ["src/"],
            "App\\": ["src/"]
        }
    }

Then you get the following error:

  Exception in EdmondsCommerce\DoctrineStaticMeta\CodeGeneration\Command\GenerateEntityCommand::execute: Exception in EdmondsCommerce\Doctrine  
  StaticMeta\CodeGeneration\Generator\EntityGenerator::generateEntity: Exception in EdmondsCommerce\DoctrineStaticMeta\CodeGeneration\Generato  
  r\EntityGenerator::createEntityTest: Exception in EdmondsCommerce\DoctrineStaticMeta\CodeGeneration\Generator\EntityGenerator::parseAndCreat  
  e: Exception in EdmondsCommerce\DoctrineStaticMeta\CodeGeneration\NamespaceHelper::parseFullyQualifiedName: The $fqn [EdmondsCommerce\[...]\  
  Entities\[...]] does not contain the project root namespace [App] - are you sure it is the correct FQN?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant