Then instead of defining a HABTM relationship, define a simple hasMany  
relationship and cheat on the foreignKey.

var $hasMany = array(
        'ModelB' => array(
                'className'     => 'ModelB',
                'foreignKey'    => '',
                'finderQuery'   => 'SELECT...'
        )
);


On 23 May 2008, at 16:28, [EMAIL PROTECTED] wrote:

>
> I have this question.
> I have two model A and B that have a HABTM relation . I must defined
> it with finderQuery because the relation is particular and  I haven't
> a table A-B with the relationship.
> Because in my code I HAVEN't neither joinTable nor foreignKey and nor
> associationKey.
> I have only finderQuery.
>
> In CAKE 1.2.XX it's not possible.
> In a case like this CAKE sets automatic a joinTable and because the
> join table doesn't exist cake returns an error.
>
> In CAKE 1.19.XX instead this is possible and works.
> I think that it's a BIG PROBLEM.
> I hope that someone can help me.
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to