How to unbind associated model in cakephp 3?


I can’t find a way to unset associated model on the fly. I remember there was an “unbind” method and a recursive property in cakephp 2.x. Is there an equivalent in cakephp 3 ? The problem is that nested models are always loaded and I think it could become a performance issue. Thanks.

Cake 3 does not include associated model by default. So if you do not add them by calling contain() you will not get them. That is why unbind was removed.

and if they are being associated and you don’t know why, maybe it’s because the pagination component.

Dont need to unbind.if you dont use contain(). It will not load associated model.

Ok I get it now ! Thanks for the help !