Re: About belongsTo relation in models

2011-06-28 Thread Jens Dittrich
You do not have to do anything in case there is no B. CakePHP will not enforce that there is an B for every A as long as you do not enforce that in your validation rules or eventually in your database. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check o

About belongsTo relation in models

2011-06-28 Thread castarco
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"