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

Undefined class constant 'ONE_TO_MANY' #156

Closed
nicodemuz opened this issue Apr 19, 2018 · 1 comment · Fixed by #157
Closed

Undefined class constant 'ONE_TO_MANY' #156

nicodemuz opened this issue Apr 19, 2018 · 1 comment · Fixed by #157

Comments

@nicodemuz
Copy link

I'm trying to run the following command:

php bin/console make:crud

But end up getting the following error:

In EntityDetails.php line 66:

[Symfony\Component\Debug\Exception\FatalThrowableError]
Undefined class constant 'ONE_TO_MANY'


Exception trace:
Symfony\Bundle\MakerBundle\Doctrine\EntityDetails->getFormFields() at /symfony/vendor/symfony/maker-bundle/src/Maker/MakeCrud.php:155
Symfony\Bundle\MakerBundle\Maker\MakeCrud->generate() at /symfony/vendor/symfony/maker-bundle/src/Command/MakerCommand.php:93
Symfony\Bundle\MakerBundle\Command\MakerCommand->execute() at /symfony/vendor/symfony/console/Command/Command.php:252
Symfony\Component\Console\Command\Command->run() at /symfony/vendor/symfony/console/Application.php:883
Symfony\Component\Console\Application->doRunCommand() at /symfony/vendor/symfony/framework-bundle/Console/Application.php:86
Symfony\Bundle\FrameworkBundle\Console\Application->doRunCommand() at /symfony/vendor/symfony/console/Application.php:241
Symfony\Component\Console\Application->doRun() at /symfony/vendor/symfony/framework-bundle/Console/Application.php:74
Symfony\Bundle\FrameworkBundle\Console\Application->doRun() at /symfony/vendor/symfony/console/Application.php:143
Symfony\Component\Console\Application->run() at /symfony/bin/console:39`
sadikoff added a commit to sadikoff/maker-bundle that referenced this issue Apr 19, 2018
@sadikoff
Copy link
Contributor

Sorry it's my fault :( already fixed, but we need to wait @weaverryan

weaverryan added a commit that referenced this issue Apr 19, 2018
This PR was merged into the 1.0-dev branch.

Discussion
----------

fix ClassMetadata namespace

fix: #156

Commits
-------

017c9a2 fix ClassMetadata namespace
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants