Wouterrr/MangoDemo — pull request #3 by gyardley (2011-11-02 04:29:09+00:00)
Title: Updated MangoDemo for Kohana 3.2

Hey, Wouterrr - we use MangoDB in some of our own projects, and while I was using your MangoDemo repository to learn about it, I noticed it was a bit out of date. I've updated it.

Changes made:

a) Updated Kohana::debug calls to Debug::vars

b) Updated Validate_Exception to Validation_Exception, changed 'alpha_numeric' => NULL rule to array('alpha_numeric') in account and group models

c) Fixed a bug in setting up a HABTM relationship in demo5. I don't think this was ever working before.

$group1->add($user1) works, $user1->add($group1,'circle') works, but the original $user1->add($group1) will never work, because the relationship the user model has is actually with 'circles', not 'groups'.

Thanks again for the great module!