[RDBO] getter/setters for relationships

2007-06-04 Thread Jonathan Vanasco
is there a convenient way to get a setter for a relationship? i know there is column_accessor_value_pairs column_mutator_value_pairs in Helpers i'm wondering what the best way to stuff an object in another is i need to do something like this: $a= a-new(); $b=

Re: [RDBO] getter/setters for relationships

2007-06-04 Thread John Siracusa
On 6/4/07, Jonathan Vanasco [EMAIL PROTECTED] wrote: is there a convenient way to get a setter for a relationship? Yes, and it works the same way as for columns. Like columns, relationships and foreign keys have N named method types created on their behalf. Examples of method type names are

Re: [RDBO] getter/setters for relationships

2007-06-04 Thread Jonathan Vanasco
On Jun 4, 2007, at 12:35 PM, John Siracusa wrote: Yes, and it works the same way as for columns. Like columns, relationships and foreign keys have N named method types created on their behalf. Examples of method type names are get, get_set, get_set_on_save, find, count, etc. There are

Re: [RDBO] getter/setters for relationships

2007-06-04 Thread John Siracusa
On 6/4/07, Jonathan Vanasco [EMAIL PROTECTED] wrote: this might be where my confusion is -- mutator_method_name states Returns the name of the method used to set the column value. many items reference column -- but it seems like they work for fkeys/relationships to. maybe all i needed was a