fuel / core

Fuel PHP Framework - The core of the Fuel v1 framework
http://fuelphp.com
813 stars 345 forks source link

Better MongoDB Support #1738

Closed dercoder closed 10 years ago

dercoder commented 10 years ago

There are a lot of MongoDB functions which are not supported now by FuelPHP Mongo_Db Class.

1st example is the $set and $unset (and some more) parameter in update function http://docs.mongodb.org/manual/reference/operator/update/set/

2nd example is the aggregate function http://php.net/manual/en/mongocollection.aggregate.php http://docs.mongodb.org/manual/core/aggregation-introduction/

WanWizard commented 10 years ago

Send a PR. ;-)

Nobody of the team uses it (we've switched to Monga some time ago), and Monga will also be the Fuel v2 Mongo interface.

dercoder commented 10 years ago

Whats PR? Thanks for info, i will try Monga

emlynwest commented 10 years ago

Pull request. And I think this issue can be closed. If people want better mongo support they can use Monga.

dercoder commented 10 years ago

Ah ok, thx. 1 more question before you can close this issue. Have you tested other MongDB classes? Is Monga the best solution?

emlynwest commented 10 years ago

Personally I have not. I have not had a chance to use Mongo in a project yet.

dercoder commented 10 years ago

Mhm, ok. I will try some of this libs

WanWizard commented 10 years ago

You may want to ask @FrenkyNet, he's the author of Monga.

frankdejonge commented 10 years ago

@DerCoder Monga is probably a better thing to go with for a simple MongoDB abstraction. I'm no longer maintaining it, the project is looking for a new lead, but the code there works like a charm. Other options would be to use the doctrine odm package. Haven't used that myself but hear great things!

dercoder commented 10 years ago

Ok, thx for this information. I dont want to use Doctrine. I will check some other libs from this http://docs.mongodb.org/ecosystem/drivers/php-libraries/