John Siracusa <[EMAIL PROTECTED]> writes: > On 12/27/05 8:27 AM, John Siracusa wrote: >> On 12/27/05 8:22 AM, John Siracusa wrote: >>> [a bunch of stuff that's not applicable to your situation] > > Actually, I was mostly right earlier. (No, really this time! :) You have a > conflict in your FooParent class between the foreign key and column names. > As I wrote before:
That makes some sense to me--I spent some of the intervening time re-reading the documentation, and I think it is starting to sink in. ;) > Foreign keys and relationships have several methods created for them, > one of which (by default) is named exactly like the relationship or > foreign key name. Columns also (by default) have a method named > exactly like the column name. So if you have a column named "foo" > *and* a relationship or foreign key named "foo", one of those things > won't be able to make its method(s). OK: I guess this is the Class::DBI background showing. My expectation was that the 'foreign_keys' declaration would extend or annotate the column declaration, rather than define additional methods. I can't actually see why having distinct access to the column and the relationship is useful, but I can see why my code has problems. :) [...] > Earlier, I suggested renaming your db columns, but that's actually a > pretty extreme solution. Well, if this were a production database rather than my playing with Rose::DB::Object to see how well it works, I would probably avoid it. As it is, I think I will just rename the columns and be done with it. As I mentioned, I can't see why I would want to get the ID, rather than the object, so having 'child' return the object makes the most sense to me. (This is especially true for a many-to-many class like this, but even for *-one or one-to-one, I think.) Thanks for the response, though -- one of the things that has most impressed my about the Rose stuff is your support of it. Thanks. Daniel ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ Rose-db-object mailing list Rose-db-object@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rose-db-object