Hello,
I am trying to get the hasAndBelongsToMany assosciations to work but I
just can't get it to return the data right. It always returns the
joinTable fields for each relation.
I have a table BreedConnections and want to get the associated users,
I get the user array right but also get in that array the jointable
fields. Everything works ok but it's not really good since it doubles
the amount.
This is how it looks for each user :
[User] => Array
(
[0] => Array
(
[id] => 1
[avatar] => claudiu_apetrei_1
[avatar_type] => .jpg
[nume] => Apetrei
[prenume] => Claudiu
[BreedConnection] => Array
(
[id] => 11
[rasa_id] => 11
[rasa_nume] => Ciobanesc german
[rasa_url] => ciobanesc-german
[type] => 1
[target_id] => 1
[data] => 0000-00-00 00:00:00
[auto_remove] => 1
)
)
)
Is this how it's supposed to return or am I doing something wrong ?
Thank You,
Claudiu
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---