Skip to content

A library for working with doctrine couch-based documents as laravel Eloquent objects.

Notifications You must be signed in to change notification settings

fjace05/nicecouch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NiceCouch

An "Eloquent" way to use CouchDB with Laravel.

This library draws heavily from Jens Segers MongoDB Eloquent Model located at https://github.com/jenssegers/laravel-mongodb.

WARNING This is a work in progress.

The architecture of CouchDB does not lend itself well to many of the common relations baked into most Eloquent Models. With the EloquentCouchdb Model, you can embedOne, embedMany and also use BelongsTo relations. Relations like HasOne, HasMany, and Morph simply do not work because of the incompatibility of CouchDB and the Eloquent model. Additionally, if you use the QueryBuilder (which the Eloquent model does) you can only use the '_id' field in where clauses. If you try to add a clause with any other field, an exception will be thrown. Again, this is because CouchDB does not provide an easy way to lookup records based on arbitrary fields.

About

A library for working with doctrine couch-based documents as laravel Eloquent objects.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages