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

Owner: Nobody in particular
Requestors: sjq [...]

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

Content-Type: text/plain
Content-Disposition: inline
Content-Transfer-Encoding: binary
MIME-Version: 1.0
X-Mailer: MIME-tools 5.417 (Entity 5.417)
Subject: Problem with CamelCase classes and underscores in table names
X-RT-Original-Encoding: iso-8859-1
Content-Length: 628
Download (untitled) / with headers
text/plain 628b
This is from a bug report filed against my Debian package of Class::DBI::Loader::Relationship version 1.2. See 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.

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to