Laravel Confide using wrong table on save -


i'm using confide , entrust laravel 4.

when try , create new user, keeps coming strange error. users stored in admin, , can edit/select users, not create them. reason, it's somewhere referencing wrong table. no errors come or anything, sql error. cannot seem find comes though.

sqlstate[42s02]: base table or view not found: 1146 table 'db.users' doesn't exist (sql: select count(*) aggregate `users` `username` = ?) (bindings: array ( 0 => 'blah', )) 

that's sql error , below php code.

$user = new admin(); $user->username = input::get('username'); $user->email = input::get('email'); $user->password = input::get('password'); $user->save(); 

admin modal: http://pastebin.com/3jem4dfk

even though modal set pull admin, tries , get's count users.

anyone have idea?

this reported on zizaco confide github issues page

what need custom validation rules, because default rules confide checking unique constraint on user table fields.

as @edrands states in comment:

"i may have solved causing first point. validation rules checking unique in users table. need custom rules."  

Comments

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -