Re: Error in define HABTM relation with 'joinTable' and with 'with'

2010-02-07 Thread Lorenzo Bettini
Yes, but I think you need to have a GroupsUser physical class that represents your HABTM with the right configuration settings... marco.rizze...@gmail.com wrote: I think that the use of 'with' and 'joinTable' attributes is excatly for tha case where models tables don't respect the cake

Re: Error in define HABTM relation with 'joinTable' and with 'with'

2010-02-03 Thread marco.rizze...@gmail.com
Is there someone that can help me about this? On 2 Feb, 19:02, marco.rizze...@gmail.com marco.rizze...@gmail.com wrote: Hi I'm working on a legacy system , i must to defina an HABTM relation between User and Group. In User model I have this:         var $hasAndBelongsToMany=array(          

Re: Error in define HABTM relation with 'joinTable' and with 'with'

2010-02-03 Thread Lorenzo Bettini
I'm not sure, but it looks like the problem is due to the table name which is in Italian, thus, it does not respect the conventions of cakephp; have you got a model for GroupsUser as well? I mean a real class for that model? In that case, you need to make sure that that class has the right

Re: Error in define HABTM relation with 'joinTable' and with 'with'

2010-02-03 Thread marco.rizze...@gmail.com
I think that the use of 'with' and 'joinTable' attributes is excatly for tha case where models tables don't respect the cake convention otherwise these attributes aren't useful On 3 Feb, 15:23, Lorenzo Bettini bett...@dsi.unifi.it wrote: I'm not sure, but it looks like the problem is due to the

Error in define HABTM relation with 'joinTable' and with 'with'

2010-02-02 Thread marco.rizze...@gmail.com
Hi I'm working on a legacy system , i must to defina an HABTM relation between User and Group. In User model I have this: var $hasAndBelongsToMany=array( 'Group' =array( 'className'= 'Group', 'joinTable'=