Are you using Cake to define model associations? Looks to me like: Post hasAndBelongsToMany Category Category hasAndBelongsToMany Post So tables would look like: posts - id - title - body categories - id - name - desc categories_posts (HABTM tables are plural of both models, in alphabetical order) post_id category_id Check out http://manual.cakephp.org/chapter/6, especially the "Defining and Querying with hasAndBelongsToMany" section for more info. -- John On May 9, 2006, at 1:36 PM, eDevil wrote:
|
- Re: Model association John Anderson
- Re: Model association John Anderson
- Re: Model association roberts.sean