On 5/11/07, Michael Lackhoff <[EMAIL PROTECTED]> wrote: > I had to change a relationship from a simple ID to ID relationship to > one that also includes a second ID. > Worse still the second ID is not a column in one of the relationship > partners but has to be taken from a record two steps up the hierarchy. > Perhaps I will change the table to include the ID directly but for the > time beiing this is what I tried:
You can only go one step in any relationship. (Many-to-many is a special case where you can go two steps.) You need to make each relationship in the "chain" separately. > column_map => { > leistung_id => 'positionsnr', > # doesn't work: > 'rezept.patient.praxis_id' => 'praxis_id', > }, That will not work. The left-hand side of a column_map can only contain the names of columns in the "local" (current) class. -John ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Rose-db-object mailing list Rose-db-object@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rose-db-object