John Siracusa wrote:
> On 10/24/06 11:45 PM, Graham Barr wrote:
> > The problem is that by default RDBO creates the metadata like
> >
> > foreign_keys => [
> > user => {
> > class => 'MyClass::User',
> > key_columns => {
> > from_id => 'id',
> > to_id => 'id',
> > },
> > },
> > ],
>
> I think that's a bug in my treatment of MySQL's information schema
> support.
> Are you by any chance using MySQl 5.0.6 or later?
Yes, 5.0.26
> Ignoring foreign_key_name_generator for now, I suggest this:
> Create your
> own custom ConventionManager subclass and override
> auto_foreign_key_name().
> Then give the loader object your custom CM.
We already use a custom CM for other things. Let me try this first.
Thanks,
Graham.
-------------------------------------------------------------------------
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?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Rose-db-object mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rose-db-object