Skip Menu |

This queue is for tickets about the Class-DBI-Loader-Relationship CPAN distribution.

Report information
The Basics
Id: 14756
Status: new
Priority: 0/
Queue: Class-DBI-Loader-Relationship

People
Owner: Nobody in particular
Requestors: sjq [...] debian.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.2
Fixed in: (no value)



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. See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=330088 for 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.