Need help with a find on related HABTM relationship

2012-09-28 Thread Clark Ritchie
I'm looking for some guidance here. I have: User hasAndBelongsToMany Project Schema: Users.id Users.name ... Project hasAndBelongsToMany User Schema: Project.id Project.name ... My join table: projects_users.user_id projects_users.project_id Site belongsTo Project Site.id

saveAll saving binary data with hasMany relationship

2012-07-09 Thread Clark Ritchie
I have two Models that I want to connect by a hasMany relationship. - Model 1 is a *School* -- basically just text info like school name, address. I can independently add/edit/view/delete schools OK. - Model 2 is a *File*. I can independently add/edit/view/delete files OK.