Skip Menu |

This queue is for tickets about the Catalyst-Model-CDBI-Plain CPAN distribution.

Report information
The Basics
Id: 17583
Status: new
Priority: 0/
Queue: Catalyst-Model-CDBI-Plain

People
Owner: Nobody in particular
Requestors: geoff [...] laxan.com
Cc:
AdminCc:

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



Subject: Should support config() class method
If you convert a DB model class from Catalyst-Model-CDBI to -Plain then it's easy to forget to change the ->config() call into an ->connection() call. This causes things to break down the line, leaving an unhelpful error message about db_Main not being available on the class (at least in my case). It would be nicest if ->config worked for this class exactly as it does in -Plain. The parameters are named, which makes the config code easier to read. At the very least ->config should issue a warning if it's not meant to be used.