I'm using 2 databases and switching between them in the controller with $this->Model->useDbConfig = 'default'; The model of both db's is the same except one db has an extra field in every table. The problem is when I do a findAll() on the db that doesn't have the extra field I get an sql error because cake is still querying the extra field. How do tell the model to "reload" ?
X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.11.88.14 with SMTP id l14mr33859cwb; Sun, 21 May 2006 08:22:00 -0700 (PDT) X-Google-Token: meOZdwwAAABJ_Cd8_hwTZLyQKpFcqiIp Received: from 69.218.137.234 by j73g2000cwa.googlegroups.com with HTTP; Sun, 21 May 2006 15:22:00 +0000 (UTC) From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> To: "Cake PHP" <cake-php@googlegroups.com> Subject: Reload the model? Date: Sun, 21 May 2006 15:22:00 -0000 Message-ID: <[EMAIL PROTECTED]> User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.3) Gecko/20060426 Firefox/1.5.0.3,gzip(gfe),gzip(gfe) Mime-Version: 1.0 Content-Type: text/plain I'm using 2 databases and switching between them in the controller with $this->Model->useDbConfig = 'default'; The model of both db's is the same except one db has an extra field in every table. The problem is when I do a findAll() on the db that doesn't have the extra field I get an sql error because cake is still querying the extra field. How do tell the model to "reload" ? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~----------~----~----~----~------~----~------~--~---