| @@ 2235-2242 (lines=8) @@ | ||
| 2232 | * @param array $data |
|
| 2233 | * @return array |
|
| 2234 | */ |
|
| 2235 | protected function _scrubQueryData($data) { |
|
| 2236 | static $base = null; |
|
| 2237 | if ($base === null) { |
|
| 2238 | $base = array_fill_keys(array('conditions', 'fields', 'joins', 'order', 'limit', 'offset', 'group'), array()); |
|
| 2239 | $base['callbacks'] = null; |
|
| 2240 | } |
|
| 2241 | return (array)$data + $base; |
|
| 2242 | } |
|
| 2243 | ||
| 2244 | /** |
|
| 2245 | * Converts model virtual fields into sql expressions to be fetched later |
|
| @@ 1259-1266 (lines=8) @@ | ||
| 1256 | * @param array $data |
|
| 1257 | * @return array |
|
| 1258 | */ |
|
| 1259 | protected function _scrubQueryData($data) { |
|
| 1260 | static $base = null; |
|
| 1261 | if ($base === null) { |
|
| 1262 | $base = array_fill_keys(array('conditions', 'fields', 'joins', 'order', 'limit', 'offset', 'group'), array()); |
|
| 1263 | $base['callbacks'] = null; |
|
| 1264 | } |
|
| 1265 | return (array)$data + $base; |
|
| 1266 | } |
|
| 1267 | ||
| 1268 | /** |
|
| 1269 | * testGenerateInnerJoinAssociationQuery method |
|