I past you my code because I can't find a solution.
MODEL :
class Ente extends AppModel
{

    var $name = 'Ente';
    var $useTable ="team";
    var $primaryKey ="team_id";
    var $validate = array(
    );

var $hasAndBelongsToMany = array( 'Network' =>array('className'    =>
'Network',
 
'finderQuery'  => 'SELECT DISTINCT Network.*
 
FROM team as t,utente_team as ut,utente_gruppo ug, gruppo as Network
 
WHERE (ut.team_id={$__cakeID__$}
        
AND ug.gruppo_id = Network.gruppo_id
 
AND ut.username=ug.username
                                                         AND
ut.team_id=t.team_id)'
                                                     )

}

CONTROLLER:
$this->Ente->id=38;
$ente= $this->Ente->read();
pr($ente);


I get always the error that:"Database table gruppo_team for model
GruppoTeam was not found."
--~--~---------~--~----~------------~-------~--~----~
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