freddiefujiwara
freddiefujiwara

Reputation: 59069

No SQL Model in CakePHP

I'd like to create a Model as following:

class User extends AppModel {
        var $name = 'User';
        var $useTable = false;
        var $primaryKey = 'user_id';
        var $hasOne = 'Profile'; 

}

but, the Model User is saved as No SQL.

How can I use that model? BTW this model is readonly. (EDIT/CREATE USER are done by another functions(no cake))

I'm assuming crypted cookie datastore

Upvotes: 0

Views: 1372

Answers (1)

Jamal Aziz
Jamal Aziz

Reputation: 710

You can look at example on how to using MongoDb with CakePHP. Read Mark Story's post about that in http://mark-story.com/posts/view/using-mongodb-with-cakephp.

Upvotes: 1

Related Questions