Posted by & filed under Programming.

It’s very common to see new Yii users confusing the relations HAS_ONE and BELONGS_TO, and getting it wrong means you won’t get proper values back. And though we’ll talk about HAS_MANY as well, we’re specifically omitting the MANY_MANY relation because it’s a whole different animal.

www.yiiframework.com/wiki/181/relations-…

Leave a Reply

You must be logged in to post a comment.