Is there a way to check CakePHP’s model relationships?
One model is saving twice on a table and I really suspect there’s something wrong with my relationships. Problem is I have a lot of tables so it’s really a pain. I’m wondering if there’s a more sure and easy way of doing this maybe automatically? Thanks in advance!
You can use
var_dumporprint_rto see what your models look like. If you want to quickly do it for all models, modifyAppModelto have it dump the structure when each model loads.