spadefoot / kohana-orm-leap

An ORM module for the Kohana PHP framework that is designed to work with all major databases.
http://spadefoot.github.io/kohana-orm-leap/
100 stars 25 forks source link

[Auth] Error when using the "remember" feature #81

Closed nyunyu95 closed 11 years ago

nyunyu95 commented 11 years ago

Hello guys,

Once more, thank you for your amazing job here !

I just figured out, I guess anyway, an error inside the Authentication system.

Here is my code :


if ($post->check())
 {
    [...]
    Auth_Leap::instance()->login($uname, $pwd, $remember);
}

and then i got the following error :

ErrorException [ Strict ]: Declaration of Base_Model_Leap_User_Token::save() should be compatible with that of Base_DB_ORM_Model::save()

I've fixed that problem by changing the prototyping of the save() method in "/leap/classes/Base/Model/Leap/User/Token.php" from :

public function save($reload = FALSE) {

to

public function save($reload = FALSE, $mode = NULL) {

I hope this is a good fix and I hope it will help other people.

Best Regards,

bluesnowman commented 11 years ago

Ok, I am fixing it right now.

nyunyu95 commented 11 years ago

Sweet! I'd forgot to change the parent's call also ;) Thanks !