On 1/19/07, Octavian Rasnita <[EMAIL PROTECTED]> wrote:
In the user_role table I have id_user and id_role fields, but if I print
$role->id_role, it doesn't print correctly, just as I shown.

You've probably set up a relationship called "id_role" and thus it's
getting called instead of the "id_role" field accessor. Try changing
the name of this relationship.

By the way, in such cases it's usually helpful if you've also sent us
a summary of how your schema classes were defined (i.e. code for your
UserRole class).

-Nilson Santos F. Jr.

_______________________________________________
List: http://lists.rawmode.org/cgi-bin/mailman/listinfo/dbix-class
Wiki: http://dbix-class.shadowcatsystems.co.uk/
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class/
Searchable Archive: http://www.mail-archive.com/[email protected]/

Reply via email to