Skip Menu |

This queue is for tickets about the DBIx-Class-Schema-Loader CPAN distribution.

Report information
The Basics
Id: 84050
Status: resolved
Priority: 0/
Queue: DBIx-Class-Schema-Loader

People
Owner: Nobody in particular
Requestors: DAVECROSS [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.07035
Fixed in: (no value)



Subject: Error in parameters to col_accessor_map
The documentation for col_accessor_map says that the third argument to the function is a hash ref with the following contents. { table_class => name of the DBIC class we are building, table_moniker => calculated moniker for this table (after moniker_map if present), table => table object of interface DBIx::Class::Schema::Loader::Table, full_table_name => schema-qualified name of the database table (RDBMS specific), schema_class => name of the schema class we are building, column_info => hashref of column info (data_type, is_nullable, etc), } Actually, there is no key called "table", it's actually called "table_name". See https://metacpan.org/source/GENEHACK/DBIx-Class-Schema-Loader-0.07035/lib/DBIx/Class/Schema/Loader/Base.pm#L2412 I think that "table" is a better name for that key. But if you're going to stick with "table_name", then please fix the documentation. Cheers, Dave...
This has been fixed in 0.07036, released just now.