recursion - CakePhp join models together -


cakephp 2.7 mssql database

i have 2 main tables in database , relation belongs-to. recursion index action set 1, on both tables.

table2 belongs table1.

i need load table1 belongs-to relation , need table2 belongs-to relation on index of table1, recursion value 1.

if set recursion 2, goes deep.

i tried has-one, belongs-to, recursion012.

resolved.. added find method in index. , set/send var index.ctp. tnx

you can use containable behavior instead of recursive option data desired table. more info see http://book.cakephp.org/2.0/en/core-libraries/behaviors/containable.html


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -