Hi,
I just updated to the latest svn version 1.2.0.7531, and suddenly Cake
won't find my DB tables anymore.
class Place extends AppModel {
...
var $hasAndBelongsToMany = array(
'Station' => array(
'className' => 'CgStation',
'joinTable' => 'places_stations',
'foreignKey' => 'place_id',
'associationForeignKey' => 'station_id',
'unique' => true
),
);
}
class CgStation extends AppModel {
...
var $useTable = 'stations';
var $hasAndBelongsToMany = array(
'Place' => array(
'className' => 'Place',
'joinTable' => 'places_stations',
'foreignKey' => 'station_id',
'associationForeignKey' => 'place_id',
'unique' => true
)
);
}
This worked perfectly fine in RC2, now Cake is giving me:
"Database table places_stations for model PlacesStation was not found."
The table is there though, and I do not have a model "PlacesStations".
Should I?
Both models have $useDbConfig for a non-default DB configuration
(mysql) BTW.
The SQL debug states:
Nr Query Affected Num.
rows Took (ms)
1 DESCRIBE `places` 31 31
11
...
5 DESCRIBE `stations` 10 10
82
6 DESCRIBE `places_stations` 5 5
14
No errors there...
Anybody know what's going on?
Chrs,
Dav
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---