model relationship naming
Is there a way to name the property of a foreign_key item? For instance, I have a DB table with a field called loc_parent_fk which is a self-referencing relationship. When I have a record from this model I can't see how to access the related object. I can access $record->loc_parent_fk but that just gives me the id of the related record, I want the object. Typically, if I had a field called category_id that was the identifier for a foreign key then when referencing it within a record (such as $record->category) would yield the related object.