Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Silex and MongoDB, which Silex Extension

I would like to use Silex with MongoDB. I guess the best way is to use a Silex Extension that again uses the Doctrine MongoDB libs.

There are two Silex Extensions right now that seem to provide this functionality. https://github.com/fate/Silex-Extensions and https://github.com/docteurklein/SilexExtensions

Except that the first brings more other Extensions and the second uses submodules (which i would prefer) instead of vendors.sh, are there more things to take care of?

Can anybody recommend the one or the other?

like image 220
ivoba Avatar asked Dec 12 '22 05:12

ivoba


1 Answers

Update: The Extensions below are outdated, pls use answer above.


to answer it myself: https://github.com/fate/Silex-Extensions uses the Doctrine MongoDB Abstraction Layer whereas https://github.com/docteurklein/SilexExtensions uses the Doctrine MongoDB ODM (Object Document Mapper)

So with the first you can only query MongoDB through Doctrine and with the second you can persist Model Objects to MongoDB as known from f.e. symfony models.

like image 161
ivoba Avatar answered Dec 21 '22 22:12

ivoba