On Thu, Jul 12, 2012 at 2:32 AM, Advantage+ <[email protected]> wrote:
> I have Post model / PostController
>
>
>
> In the db I have favorite_posts but when I try to bake I get Favorite Table
> not found. There is no favorite table so something is wrong with my table
> name but what is it?
>
>
>
> Where am I going wrong here?
>

Does the bake script think that you are baking a link table to link
favourites and posts? Maybe in a many to many relationship?
If you had a Favourite model and a Posts model and you wanted to
associate them together, you would use a Favourite_Posts table. Can
you change the name of the Favourite_Posts table to remove the
underscore?

What happens if you create the Favourite_Posts model by hand?

Mike.

-- 
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