Closed davidrojo closed 8 years ago
You need to change your doctrine/mongodb-odm-bundle
version to dev/poc-collections
so eveyrthing will be configured properly (i.e. directory to which generated classes are written).
I am trying to use custom collection classes (#1219) as I've seen this is a new feature for 1.1 and It's really very awesome.
Really glad to hear that, thanks!
Offhand I should formalize bundle's PR more today, I see it's still pointing to my ODM fork as I prepared it before merging collections into main master branch.
Thanks for the comment, I've changed the composer.json for mongodb-odm-bundle to dev-poc-collections but when I run composer update I receive this error:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for doctrine/mongodb-odm-bundle dev-poc-collections -> satisfiable by doctrine/mongodb-odm-bundle[dev-poc-collections].
- doctrine/mongodb-odm-bundle dev-poc-collections requires doctrine/mongodb-odm dev-poc-collections as 1.0.x-dev -> no matching package found.
I am not very familiar with composer still, so i don't know which change should I do to get this running. Thank you.
Gimme a moment, I'll straight out bundle now, I'll ping you here when it's done :)
Thanks :)
@davidrojo I've updated the bundle, can you try installing deps once again?
Yes, It's now working. Thank you very much.
I will add you in the agreements section of my university project :)
Hello, it is 2018 and I am still getting this error on v 1.2.5 :) Albeit with my custom collection.
@josefsabl what error are you getting exactly?
Please provide some details or at the very least show your dependencies.
Since this issue was closed and resolved, I would strongly suggest opening a new issue to fully describe the outstanding problem. Of course, you can link back to this issue for context. By doing so, you'll ensure the new issue gets proper attention and can be triaged appropriately.
You must configure a hydrator directory. See docs for details. i am getting this error anyone help ?
Hello,
I am trying to use custom collection classes (https://github.com/doctrine/mongodb-odm/pull/1219) as I've seen this is a new feature for 1.1 and It's really very awesome. I've changed my composer to require dev-master branch in a Symfony 2 project.
I've got this in my Document/Section.php
And in \DelfosBundle\Utils\Collections\SortedCollection
But I receive this error now:
This are the versions I am using