cakephp2-php8/lib/Cake/Model
Lawrence Barsanti 0b28c2e839 Added negative lookahead
It is possible to have multiple occurrences of 'as' in a field name.
Use the last occurrence of 'as' when extracting field name.

Tested with following examples:
"WeldCheck"."weld_id"
count(*) as WeldCheck__num_measurements
count(case decision when 2 then 1 else null end) as
WeldCheck__num_failures
avg(cast (WeldMeasurement.surface_indentation as bigint)) as
WeldCheck__avg_indentation
avg(cast (WeldMeasurement.circle_diameter as bigint)) as
WeldCheck__avg_diameter
2015-06-25 22:21:38 -04:00
..
Behavior Documentation update 2015-06-01 16:14:15 +02:00
Datasource Added negative lookahead 2015-06-25 22:21:38 -04:00
Validator Adjust bake, docblocks and tests for notBlank. 2015-05-17 22:27:16 +02:00
AclNode.php Consolidate with conditions sniff. 2014-12-09 03:17:35 +01:00
Aco.php Correct doc blocks according to cs guidelines. 2014-07-03 15:36:42 +02:00
AcoAction.php Correct doc blocks according to cs guidelines. 2014-07-03 15:36:42 +02:00
Aro.php Correct doc blocks according to cs guidelines. 2014-07-03 15:36:42 +02:00
BehaviorCollection.php Replace our custom code fence with markdown standard fence 2015-01-09 13:47:25 +01:00
CakeSchema.php Now the tableParameters array gets escaped through values(), too 2014-10-16 19:10:52 +02:00
ConnectionManager.php Correct doc block return types. 2014-11-05 13:03:27 +01:00
I18nModel.php Improved the DocBlocks and other code cleanup 2013-05-31 00:11:19 +02:00
Model.php Adjust bake, docblocks and tests for notBlank. 2015-05-17 22:27:16 +02:00
ModelBehavior.php Replace our custom code fence with markdown standard fence 2015-01-09 13:47:25 +01:00
ModelValidator.php Adjust bake, docblocks and tests for notBlank. 2015-05-17 22:27:16 +02:00
Permission.php Correct doc blocks according to cs guidelines. 2014-07-03 15:36:42 +02:00