Tuesday, February 23, 2010

Re: Question about relationships, extending the blog tutorial

^^ What @Andy says is right.

Simple rule of thumb for hasMany/hasOne <-> belongsTo
relationships ... whichever model your foreign_key is in, it belongs
to the other model.

Welcome to CakePHP, it should make learning complex PHP a lot easier
for you. I sometimes wish I hadn't taught myself a lot of bad habits
by learning raw PHP first :)

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

No comments: