i'm sure this is built correctly - but i'm not getting the results so maybe it isn't
subscription model
class Subscription extends AppModel
{
var $name = 'Subscription';
var $hasAndBelongsToMany = array('User','Product');
}
user model
class User extends AppModel
{
var $name = 'User';
var $hasAndBelongsToMany = array('Subscription');
var $hasOne = array('Profile');
etc.etc.etc.
}
so i don't see what i'm missing? any suggestions for what i should be checking?
T
On 10/28/06, Ismael S. Kafeltz <[EMAIL PROTECTED]> wrote:
This shouldn't be something like this:
$data = "" = $id AND subscription_id =
blablabla");
if HABTM is corrected built, it will return all subscription from userid
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake PHP" 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
-~----------~----~----~----~------~----~------~--~---
- Re: HABTM select problem Trevor Burton
- Re: HABTM select problem rdoggsv
