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

MongoDB: error on document generation #61

Closed
inoryy opened this issue Sep 3, 2011 · 6 comments
Closed

MongoDB: error on document generation #61

inoryy opened this issue Sep 3, 2011 · 6 comments

Comments

@inoryy
Copy link

inoryy commented Sep 3, 2011

When I run app/console doctrine:mongodb:generate:documents it fails with
Catchable Fatal Error: Argument 1 passed to Doctrine\ODM\MongoDB\Event\LoadClassMetadataEventArgs::__construct() must be an instance of Doctrine\ODM\MongoDB\Mapping\ClassMetadata, instance of Doctrine\ODM\MongoDB\Mapping\ClassMetadataInfo given, called in \vendor\doctrine-mongodb-odm\lib\Doctrine\ODM\MongoDB\Mapping\ClassMetadataFactory.php on line 273 and defined in \vendor\doctrine-mongodb-odm\lib\Doctrine\ODM\MongoDB\Event\LoadClassMetadataEventArgs.php line 41

In order to get it to work, I need to comment out mongodb settings of stof_doctrine_extensions in config.yml

@stof
Copy link
Owner

stof commented Sep 3, 2011

This issue has been fixed in the ODM a few days ago IIRC. try to update the ODM to the latest master branch and see if the issue is fixed or no.

@inoryy
Copy link
Author

inoryy commented Sep 3, 2011

ODM is up-to-date, still same problem

@stof
Copy link
Owner

stof commented Dec 3, 2011

@Inori can you check if this issue is still valid with the latest version of the ODM ?

@stof stof closed this as completed Mar 10, 2012
@jamhall
Copy link

jamhall commented May 10, 2012

Still the same problem

@stof
Copy link
Owner

stof commented May 10, 2012

which version of the ODM ?

@jamhall
Copy link

jamhall commented May 10, 2012

Sorry. I was wrong. it was a problem with the deps.lock file. My apologies. Thanks for the hard work you've put in.

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

No branches or pull requests

3 participants