I'm new to cakePHP, so I may miss the obvious.
The system is performing the last boot using Microsoft SQL Server 2005 as the database. I understand that this is a bit unusual, but after fixing the URL rewrite, I did not see other problems.
I would like to use custom finderQuery, but I can't even replace the default value. In particular, if I use
var $hasMany = array( 'RecyclateTypeConversion' => array( 'className' => 'RecyclateTypeConversion', 'foreignKey' => 'recyclate_type_id', 'dependent' => false, 'conditions' => '', 'fields' => '', 'order' => '', 'limit' => '', 'offset' => '', 'exclusive' => '', 'finderQuery' => 'select RecyclateTypeConversion.* from recyclate_type_conversions AS RecyclateTypeConversion WHERE RecyclateTypeConversion.recyclate_type_id IN ({$__cakeID__$});', 'counterQuery' => '' ), };
I see this error
Note (8): Undefined index: RecyclateTypeConversion [CORE \ pie \ LIES \ model \ Data sources \ dbo_source.php, line 1099]
However, the output from SQL debugging confirms that the query itself works fine and returns 4 records, and the view works fine when finderQuery is not specified. I tried for other hasMany tables too - with the same problem.
I tried to replace the selection with certain fields, but I still see the same result. Of course, the query looks right according to the manual - so what is the problem (and could this be related to using MSSQL?)
EDIT: Also, since it has not yet been able to find answers to the questions, which approach is best to debug? I started the hunt through the cake debugging class, but so far without the results that enlightened me. Of course, if a problem occurs, I will send the patch back to the project.