> You're welcome. In doing this, I learned about the persistent key, so
> everyone wins. Let us know how it goes.

Just tried this at home and I'm baffled with this error: Cannot redeclare class 
dbosource in /var/www/cake/cake/libs/model/datasources/dbo_source.php

Here's my setup:

app/config/database.php:
=======================

  var $psw = array('driver' => 'mysql',
                'connect' => 'mysql_connect',
                'host' => 'localhost',
                'login' => '***',
                'password' => '***',
                'database' => 'psw',
                'persistent' => false,
                'prefix' => '');

  var $pbs = array('driver' => 'mysql',
                'connect' => 'mysql_connect',
                'host' => 'localhost',
                'login' => '***',
                'password' => '***',
                'database' => 'pbs',
                'persistent' => false,
                'prefix' => '');



app/models/student.php
=======================
<?
class Student extends AppModel
{
  var $name = 'Student';
  var $useDbConfig = 'pbs';

  var $belongsTo = array(
        'Customer' => array('className' => 'Customer')
      );
}
?>

app/models/customer.php
=======================
<?
class Customer extends AppModel
{
  var $name = 'Customer';
  var $useDbConfig = 'psw';
}
?>

Am I missing something?

--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to