Friday, July 13, 2012

RE: Naming Conventions

user_id
post_id
created


-----Original Message-----
From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf
Of Jeremy Burns | Class Outfit
Sent: Friday, July 13, 2012 9:50 AM
To: cake-php@googlegroups.com
Subject: Re: Naming Conventions

What are the column names of the table that's causing the issue?

Jeremy Burns
Class Outfit

http://www.classoutfit.com

On 13 Jul 2012, at 13:15:23, Advantage+ wrote:

> There is no favorite table, no do I need 1. Its just 2 word named
> table. "I have a favorite post so I'm going to bookmark it"....i have
> bookmark for something else so that's not an option.
>
> -----Original Message-----
> From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On
> Behalf Of Mike Griffin
> Sent: Friday, July 13, 2012 6:05 AM
> To: cake-php@googlegroups.com
> Subject: Re: Naming Conventions
>
> On Thu, Jul 12, 2012 at 2:32 AM, Advantage+ <movepixels@gmail.com> 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
> cake-php+unsubscribe@googlegroups.com For more options, visit this
> cake-php+group at http://groups.google.com/group/cake-php
>
> --
> 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+unsubscribe@googlegroups.com For more options, visit this
> cake-php+group at http://groups.google.com/group/cake-php

--
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+unsubscribe@googlegroups.com For more options, visit this group
cake-php+at http://groups.google.com/group/cake-php

--
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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate