Hi Dave,

Your tables should be in plural - profiles_skills - to conform to
CakePHP conventions :)

Enjoy,
   John

On Dec 23, 3:44 am, "Dave" <make.cake.b...@gmail.com> wrote:
> Following the logic pointed out by AD7six in the reply below my message, I
> end up with missing table.
>
> I created my models as:
> Profile
> Skill
> ProfileSkill
>
> Database has:
> profiles
> skills
> profile_skills
>
> Database table profile_skill for model ProfileSkill was not found.
>
> Where did I go wrong here?
>
> Thanks guys
>
> Dave
>
> -----Original Message-----
> From: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] On Behalf
>
> Of AD7six
> Sent: December-22-09 5:42 AM
> To: CakePHP
> Subject: Re: 3 Days and not 1 person has any idea?
>
> On 21 dic, 22:05, "Dave" <make.cake.b...@gmail.com> wrote:
> > Thanks John,
>
> > That’s correct what I am trying to do as you stated.
>
> > HABTM Structure
> > Profile
> >         id
>
> > Skill
> >         id
> >         name
>
> > profile_skill
> >         profile_id
> >         skill_id
> >         year <- this is my new aded field
>
> IMO your whole problem stems from trying to refer to a model as a join
> table. When a join table has more than 2 fields - make it a model. If you
> give profile_skill a primary key, create a model for it, define Profile
> hasMany ProfileSkill etc. you've find your difficulties pretty much
> dissolve.
>
> hth,
>
> AD
>
> Check out the new CakePHP Questions sitehttp://cakeqs.organd help others
> with their CakePHP related questions.
>
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com To
> unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group
> cake-php+athttp://groups.google.com/group/cake-php?hl=en
> No virus found in this incoming message.
> Checked by AVG -www.avg.com
> Version: 9.0.717 / Virus Database: 270.14.114/2575 - Release Date: 12/21/09
> 15:43:00

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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?hl=en

Reply via email to