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

Update to PHP7 and ext-mongodb #484

Closed
rubenrua opened this issue Sep 27, 2017 · 3 comments
Closed

Update to PHP7 and ext-mongodb #484

rubenrua opened this issue Sep 27, 2017 · 3 comments
Labels

Comments

@rubenrua
Copy link
Contributor

No description provided.

@rubenrua
Copy link
Contributor Author

rubenrua commented Sep 27, 2017

@q0re
Copy link

q0re commented May 17, 2018

I tried a lot, but i could not get it to work with php7.

What i have done so far:

  1. Update composer file and delete:

"doctrine/mongodb-odm": "1.0.x-dev#328c1eba840a4f3b81d3a28211b3f1ce5445ceaf",
"doctrine/mongodb-odm-bundle": "3.0.x-dev#1ac417f1e1374474778707f9f0d7d82b19d17922"

  1. delete the post-install-cmd script as well

  2. config alcaeus mongo-php-adapter:

composer config "platform.ext-mongo" "1.6.16" && composer require alcaeus/mongo-php-adapter

  1. install mongodb-odm and odm-bundle

composer require "doctrine/mongodb-odm-bundle"
composer require "doctrine/mongodb-odm"

  1. run the post-install-cmd script

  2. follow the installation guide (set permissions, ...)

Result
app_dev.php still throws the Error Compile Error: Cannot use 'Int' as class name as it is reserved

I used grep to make sure that the complete vendor folder is not using the @Int Annotation. Any ideas? Maybe a autoload is loading some references?

@rubenrua
Copy link
Contributor Author

in master!!!!

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

2 participants