Comments (10)
fixed:
from symfony.
Thanks, but after I copied this 2 files to my Symfony2 beta1, I got :
Uncaught exception 'InvalidArgumentException' with message 'The service definition "doctrine" does not exist.' in src\Symfony\Component\DependencyInjection\ContainerBuilder.php:611
Should I update some more files?
from symfony.
The Doctrine bundle has changed a lot since beta1. So, it won't be easy to get a working patch for beta1. So, you need to upgrade to master or wait for beta2 which should be out early next week.
from symfony.
Thanks.
Will it work if I update just Doctrine bundle?
from symfony.
You should test, but it will probably work.
from symfony.
After upgrading DoctrineBundle to master I got:
PHP Warning: Illegal offset type in isset or empty in src\Symfony\Bundle\DoctrineBundle\Registry.php on line 102 Warning: Illegal offset type in isset or empty in src\Symfony\Bundle\DoctrineBundle\Registry.php on line 102 Catchable fatal error: Object of class appDevDebugProjectContainer could not be converted to string in src\Symfony\Bundle\DoctrineBundle\Registry.php on line 103
from symfony.
Symfony\Bundle\DoctrineBundle\Registry::getEntityManager() expects string, but appDevDebugProjectContainer instance is passed instead.
from symfony.
Suggested fix:
in
Symfony\Bundle\DoctrineBundle\Command\ImportMappingDoctrineCommand
replace on 2 places:
$this->getEntityManager($this->container, $input->getOption('em'))
with
$em = $this->getEntityManager($input->getOption('em'));
from symfony.
Are you sure you have symfony/master? Because in ImportMappingDoctrineCommand
, I have only one getEntityManager
and with the right signature.
from symfony.
Sorry, my bad.
Error was in external bundle https://github.com/mstrzele/PgSqlBundle/blob/master/Symfony/Bundle/DoctrineBundle/Command/ImportMappingDoctrineCommand.php so symfony is ok.
Sorry again.
from symfony.
Related Issues (20)
- Attempted to call an undefined method named "setCallbackWrapper" of class "Symfony\Component\Cache\Adapter\TraceableAdapter". HOT 1
- symfony/serializer version 7.0.7 now throws NotNormalizableValueException HOT 5
- [Serializer] `ObjectNormalizer` breaks when used with `PropertyInfoExtractorInterface` HOT 4
- [HttpClient] Segfault CurlResponse HOT 1
- [Translation] `translation:extract` with bundle - should also extract translations from PHP code HOT 1
- [RFC] include a new dev dependency `twig-cs-fixer` in the codebase HOT 6
- [DoctrineBridge] Possible cirtucal references of lazy-service (listener) HOT 1
- [Messenger][Doctrine] cleanup only the configured queue_name
- BicValidator/IbanValidator value normalization HOT 1
- [DependencyInjection] Can not replace arguments if none have been configured yet - InlineAutowire HOT 3
- [Routing] Output IDN domains instead of punycode for `UrlGeneratorInterface::ABSOLUTE_URL`
- [Ldap] UpdateOperation toArray() function throws exception when using LDAP_MODIFY_BATCH_REMOVE_ALL operation type HOT 1
- feat(messenger)[AMQP transport]: allow to opt out to autosetup delay exchange in configuration HOT 1
- [Validator] Class "Locale" not found HOT 1
- The configuration of packages in the application is ignored after they are applied inside `prependExtension` the bundle HOT 4
- [symfony/yaml] Yaml::dump cannot properly parse array of arrays / nested arrays HOT 1
- Add a flag to sort debug:router output by alphabetical order, according to a column name
- SQS Messenger Component with special chars in the DSN HOT 2
- [Config] ParamConfigurator is not longer respected as scalar-string-value HOT 2
- Session variables are not persisted correctly
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from symfony.