Model relationship types in cakePhP

Posted by kwokwai on Stack Overflow See other posts from Stack Overflow or by kwokwai
Published on 2010-05-10T02:47:42Z Indexed on 2010/05/10 2:58 UTC
Read the original article Hit count: 359

Filed under:

I have checked out the cookbook web site of cakephp that there are four types Model relationship:
http://book.cakephp.org/view/79/Relationship-Types

Since the one I am more familiar with is belongsTo,
I am not sure when I need to use hasManay and HABTM.
What will be the result to my web site if I used a wrong Model relationship type?
Please advise.

© Stack Overflow or respective owner

Related posts about cakephp