|Subject:||Problem with CamelCase classes and underscores in table names|
This is from a bug report filed against my Debian package of Class::DBI::Loader::Relationship version 1.2. Seefor full details. The reporter said: There seems to be a problem when setting up has_a / has_many relationships with classes involved that contain CamelCase and the database table has an underscore (camel_case). When the has_many is called before the has_a, cascading deletes won't work. Swapping the order of the two code lines solves the problem for me. Seems like it needs the has_a first to know what column is pointing back. I swapped lines 98 and 97.