More informations about sql querys:
1 DESC `view_servererror`
---------------------------------------------------------------------
2 SELECT COUNT(*) AS count FROM `view_servererror` AS `serviceerror`
WHERE 1
---------------------------------------------------------------------
3 SELECT `serviceerror`.`server_id`, `serviceerror`.`service_id`,
`serviceerror`.`service_error_log_id`, `serviceerror`.`error_type_id`
FROM `view_servererror` AS `serviceerror` WHERE 1 ORDER BY
`serviceerror`.`service_error_log_id` desc LIMIT 20
all sql querys above execute normaly and no error occured!
-----------------------------------==========================================------------------------------------
Finnaly I modified the \cake\libs\model\datasources\dbo_source.php
Line 569(origin):
$data =
$model->{$associations[$key]['className']}->afterFind(array(array($key
=> $results[$i][$key])));
=========================================>>>
new:
if(isset($associations[$key])){
$data =
$model->{$associations[$key]['className']}->afterFind(array(array($key
=> $results[$i][$key])));
}else{
$data[0][$key] = $results[$i][$key];
}
--------------------------------------------------------------------------------------------------------------------------------------------
I hope there will be a man offer me a better way,thanks a lot!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---