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

[DoctrineBridge] dependency on symfony/property-info missing? #30948

Closed
dmaicher opened this issue Apr 7, 2019 · 5 comments · Fixed by doctrine/DoctrineBundle#950
Closed

Comments

@dmaicher
Copy link
Contributor

dmaicher commented Apr 7, 2019

Symfony version(s) affected: master

Description
Since #27735 it seems there is a composer dependency from symfony/doctrine-bridge on symfony/property-info missing.

How to reproduce
Take symfony-demo app.

Change it to use dev-master symfony components:

diff --git a/composer.json b/composer.json
index ec7348c..aab43b7 100644
--- a/composer.json
+++ b/composer.json
@@ -84,7 +84,8 @@
     "extra": {
         "symfony": {
             "allow-contrib": true,
-            "require": "4.2.*"
+            "require": "dev-master"
         }
-    }
+    },
+    "minimum-stability": "dev"
 }

And run composer up:

Executing script cache:clear [KO]
 [KO]
Script cache:clear returned with error code 255
!!  
!!  Fatal error: Interface 'Symfony\Component\PropertyInfo\PropertyListExtractorInterface' not found in /var/www/symfony-demo/vendor/symfony/doctrine-bridge/PropertyInfo/DoctrineExtractor.php on line 29
!!  PHP Fatal error:  Interface 'Symfony\Component\PropertyInfo\PropertyListExtractorInterface' not found in /var/www/symfony-demo/vendor/symfony/doctrine-bridge/PropertyInfo/DoctrineExtractor.php on line 29
!!  
!!  In DoctrineExtractor.php line 29:
!!                                                                                                                   
!!    Attempted to load interface "PropertyListExtractorInterface" from namespace "Symfony\Component\PropertyInfo".  
!!    Did you forget a "use" statement for another namespace?                                                        
!!                                                                                                                   
!!  
!!  
Script @auto-scripts was called via post-update-cmd

Possible solution

Add a hard dependency on symfony/property-info ?

@xabbuh
Copy link
Member

xabbuh commented Apr 7, 2019

I am looking into it.

@xabbuh
Copy link
Member

xabbuh commented Apr 7, 2019

@dmaicher Can you confirm that doctrine/DoctrineBundle#950 helps?

@dmaicher
Copy link
Contributor Author

dmaicher commented Apr 7, 2019

@xabbuh should we close here as its only really related to DoctrineBundle? I can open a new issue there?

@webgear88
Copy link

Hi All, can i know how to solve it ? or any workaround, urgently need this. thanks a lot!

@maxhelias
Copy link
Contributor

@webgear88 you can downgrade your DoctrineBundle to 1.10 version for fix it quickly but i think the PR will be quickly merged and you will be able to upgrade the Bundle

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants