Tuesday, June 28, 2011

About belongsTo relation in models

Hello, I have a doubt about the belongsTo relation between A and B. If
I make a belongsTo relation, it's mandatory that all the A entities
refers to B entities?

In my case, there are cases where the reference exists, and in other
many cases, the reference don't exists. Should I to create a "null"
entity in the model B to refer it in those cases?

Thanks in advance.

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


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

No comments: