HAS_ONE trickery

hello everybody,

I have a messages table, where I have a sender ID and a receiver ID. Of course both of them is storing a user ID, that belongs to the users table.

All I want to do, is to get the names of the users. I started using the HAS_ONE relation, but I got confused and not sure if this is the right solution or not :confused:

thanks,

–iM

have u tried BELONGS_TO??

yup, that’s what it was. sometimes I just way over-think things :)

thanks,

–iM