My guess is the naming of your model filename and class - the model
filename should be "category_post" and the class name should be
"CategoryPost".

The reason that it works when you move the table to the "default"
schema, is that then your application is using AppModel for reading
your table.

Should someone else have better information, please feel free to offer
it :)
Enjoy,
   John

On Jan 26, 7:22 am, "Dave Maharaj" <m...@davemaharaj.com> wrote:
> 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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to