Hey guys I am using this bundle for symfony
and mongodb
.
When I do this :
php bin/console doctrine:mongodb:generate:documents AppBundle
I have this :
Generating documents for "AppBundle"
> generating AppBundle\Document\MessageUser
And for this :
php bin/console doctrine:mongodb:schema:update
I have this :
Updated indexes for all classes
So as you can see i have 0 error but I don't see the database or the collections with the command "mongo" (and show bds, use , show collections ...)
So where can I see where is save the document ? Or can I fix this ?(all works fine for me in local but I have this when I put to server)
Firstly you should use:
php bin/console doctrine:schema:create
in order to create the database and then:
php bin/console doctrine:mongodb:schema:update
to create the collections.