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?

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to