[Catalyst] How can it be - wrong model returned?

Alex Povolotsky tarkhil at over.ru
Thu Mar 6 11:12:24 GMT 2008


Hello!

I've made a simple many-to-many relationship for user/roles 
authentication, and suddenly found that

    my $model = $c->model('Pwuser')->search()->all();
    my $roles = $c->model('Role')->search()->all();
    my $ur = $c->model('UserRole')->search()->all();

results in

SELECT me.uid, me.login, me.password FROM pwuser me:
SELECT me.uid, me.rid FROM user_role me:
SELECT me.uid, me.rid FROM user_role me:

nothing get selected from role table, and $c->model('Role')->search->all 
selects from wrong table.

How can it be and what can I do?...

Alex.




More information about the Catalyst mailing list