[Dbix-class] doing a search
Nilson Santos Figueiredo Junior
acid06 at gmail.com
Fri Jan 19 17:45:49 GMT 2007
On 1/19/07, Octavian Rasnita <orasnita at gmail.com> 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.
More information about the Dbix-class
mailing list