Re: Linking Models Together

2012-08-01 Thread newt_e
Gah - I'm a numpty. Kept putting the foreignKey as the column on the table I'm joining to. As for books/authors - I took the simple approach and gave each book one author. If a book is written by John Smith and Bob Jones, then there is a row in the author table "John Smith & Bob Jones". Makes t

Re: Linking Models Together

2012-07-31 Thread newt_e
iable in model to > your column > -- > Lep pozdrav, Tilen Majerle > http://majerle.eu > > > > 2012/7/29 newt_e > >> Hi, >> >> I've have two tables: >> authors, has a column called id (amongst others) >> books, has columns called id an

Linking Models Together

2012-07-29 Thread newt_e
Hi, I've have two tables: authors, has a column called id (amongst others) books, has columns called id and authorid (amongst others) Obviously a book has an author, so any value of authorid must exist in the authors table. When I retrieve an authors row, I also want to return the correspondin

Registering With the Bakery on the CakePHP website

2012-07-29 Thread newt_e
Has anyone else had problems registering on the CakePHP website? The verification email contains a link that doesn't work so I can't do the verification part - is it just me? N. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Ques