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

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

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

Subject: Should support config() class method
MIME-Version: 1.0
X-Mailer: MIME-tools 5.418 (Entity 5.418)
Content-Type: text/plain; charset="utf8"
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 535
Download (untitled) / with headers
text/plain 535b
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.

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

Please report any issues with to