No matter what table is missing.
Database has table categories_posts
I have a categories_post.php
<?php class CategoriesPost extends AppModel {
public $name = 'CategoriesPost';
public $useDbConfig = 'default';
public $belongsTo = array(
'Category' => array(
'className' => 'Category',
'foreignKey' => 'category_id'),
'Post' => array(
'className' => 'Post',
'foreignKey' => 'post_id')
);
}?>
If I move the table into my second database (same server ) all is good, public $useDbConfig = 'default'; does nothing I can change it to public $useDbConfig = 'not_even_a_database'; and no error or anything. Like its not even reading this file at all.
Any ideas?
No comments:
Post a Comment