Received: by 10.68.219.170 with SMTP id pp10mr10308166pbc.1.1340545252051; Sun, 24 Jun 2012 06:40:52 -0700 (PDT) X-BeenThere: rose-db-object@googlegroups.com Received: by 10.68.227.136 with SMTP id sa8ls11269801pbc.8.gmail; Sun, 24 Jun 2012 06:40:51 -0700 (PDT) Received: by 10.68.229.132 with SMTP id sq4mr1844157pbc.18.1340545251564; Sun, 24 Jun 2012 06:40:51 -0700 (PDT) Date: Sun, 24 Jun 2012 06:40:50 -0700 (PDT) From: randian To: rose-db-object@googlegroups.com Message-Id: <4d79eaea-79bc-4612-9603-1944424505c5@googlegroups.com> Subject: Rose::DB and require MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_3546_22776542.1340545250700" ------=_Part_3546_22776542.1340545250700 Content-Type: multipart/alternative; boundary="----=_Part_3547_21663783.1340545250703" ------=_Part_3547_21663783.1340545250703 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit I've been trying Module::Pluggable to import a bunch of modules containing Rose table definitions/classes. It appears to essentially do a 'require' for what it loads. Unfortunately, when I try to make method calls after doing a Classname->new for a table gives me the following error: Can't locate object method "add_x" via package "Table" Methods for the following relationships and foreign keys were deferred and then never actually created in the class Table. TYPE NAME ---- ---- Foreign Key a Relationship x So apparently some initialization didn't get done on my table classes because of using Module::Pluggable rather than 'use Table1; use Table2; ...'. How can I debug/fix this? ------=_Part_3547_21663783.1340545250703 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit I've been trying Module::Pluggable to import a bunch of modules containing Rose table definitions/classes. It appears to essentially do a 'require' for what it loads. Unfortunately, when I try to make method calls after doing a Classname->new for a table gives me the following error:

Can't locate object method "add_x" via package "Table"

Methods for the following relationships and foreign keys were deferred and
then never actually created in the class Table.

TYPE            NAME
----            ----
Foreign Key    a
Relationship    x

So apparently some initialization didn't get done on my table classes because of using Module::Pluggable rather than 'use Table1; use Table2; ...'.  How can I debug/fix this?
------=_Part_3547_21663783.1340545250703-- ------=_Part_3546_22776542.1340545250700--