I'm trying to create a Checkboxgroup based on a many-to-many relationship, but I'm getting a huge string of errors. Here's what's going on.

Here's the relevant code from the Schema definition from my Contacts table:
__PACKAGE__->has_many(
  "classified_contacts",
  "Schema::DB::ClassifiedContacts",
  { "foreign.clc_contact" => "self.ctc_id" },
);

And here's the relevant code from the schema definition from the ContactClasses table:
__PACKAGE__->has_many(
  "classified_contacts",
  "Schema::DB::ClassifiedContacts",
  { "foreign.clc_class" => "self.ccl_id" },
);


The relevant code from the schema definition of the ClassifiedContacts table (which ties the above two tables together):
__PACKAGE__->belongs_to(
  "clc_contact",
  "Schema::DB::Contacts",
  { ctc_id => "clc_contact" },
);
__PACKAGE__->belongs_to(
  "clc_class",
  "Schema::DB::ContactClasses",
  { ccl_id => "clc_class" },
);


This is the FormFu code I'm using to attempt to generate the Checkboxgroup:
elements:
  - type: Checkboxgroup
    name: ClassifiedContacts
    model_config:
      default_column: clc_id

And, finally, here's the series of errors I'm getting:
Pseudo-hashes are deprecated at /usr/lib/perl5/site_perl/5.8.5/HTML/FormFu/Element/_Group.pm line 123. Pseudo-hashes are deprecated at /usr/lib/perl5/site_perl/5.8.5/HTML/FormFu/Element/_Group.pm line 123. Argument "DBIx::Class::ResultSourceHandle:Contacts" isn't numeric in hash dereference at /usr/lib/perl5/site_perl/5.8.5/HTML/FormFu/Element/_Group.pm line 123.



I'd appreciate any help in diagnosing this problem.

Thanks,
Greg Coates
Coatesoft

_______________________________________________
HTML-FormFu mailing list
HTML-FormFu@lists.scsys.co.uk
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu

Reply via email to