I removed all the relationships and the 'use' code. Now I have something like this (from the original 33 tables)
Tables
users, user_prop_type_bin, user_prop_type_float, user_prop_types, user_props
with a relation of user -> user_prop_type_* it works flawlessly
as soon as i add a relation of user_prop_type_* -> users
everything breaks
Can't locate object method "meta" via package "Cantella::PaperKiller::DB::User" at /usr/local/lib/perl5/site_perl/5.8.7/Rose/DB/Object/MakeMethods/Generic.pm line 1558.
Is it because there is a circular relationship??? where every user has many props and many props have one user? it seems what heppens is that its trying to make a user object and so it makes the prop type object and then it tries to make a user object for the proptype, except it can't because that's what its doing already
i am so so lost right now.
On 5/1/06, Guillermo Roditi <[EMAIL PROTECTED]> wrote:
OK I spoke to soon. The errors are back on the rest of my codebase. If i take the
__PACKAGE__->meta->relationships(...) lines it seems to be fine. I think it may be an issue with the convention manager. I thought I named everything according to standard conventions but all of a sudden i guess maybe I didn't? its hard to isolate it though because everything is related and so pretty much all it takes is loading one module for like pretty much all of them to be loaded.. i dont really know how to isolate it. is there some sort of debug mode? I just kind of want to figure out exactly where and why the module is dying. any suggestions or should i unrelate everything and then comment the relations one by one until something breaks?On 5/1/06, Guillermo Roditi < [EMAIL PROTECTED]> wrote:Hmmm. I actually found it. a misspelling while defining a relationship. I grepd through Manager.pm to figure it out. it always happens that as soon as i get frustrated enough to post to a list i end up finding the error 3 seconds after i post. grrr.On 5/1/06, John Siracusa < [EMAIL PROTECTED]> wrote:On 5/1/06, Guillermo Roditi <[EMAIL PROTECTED]> wrote:
> Hi, I am having a little trouble with Rose::DB::Object.
>
> I keep getting the error below and I am not entirely sure what it means...
> Dos it mean that it couldnt guess the foreign class name ?
Are you using the Loader? If so, can you provide a reproducible
example, including your database schema (just enough tables to
reproduce the error) and the loader call itself?
-John
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmdlnk&kid0709&bid&3057&dat1642
_______________________________________________
Rose-db-object mailing list
Rose-db-object@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rose-db-object