Skip to content

Commit

Permalink
Make FW/1 smarter about implicit setters and persistent components
Browse files Browse the repository at this point in the history
  • Loading branch information
seancorfield committed Aug 23, 2011
1 parent 2952522 commit 4c13ba3
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions org/corfield/framework.cfc
Expand Up @@ -1063,7 +1063,13 @@ component {
var md = { extends = baseMetadata };
do {
md = md.extends;
var implicitSetters = ( structKeyExists( md, 'persistent' ) && isBoolean( md.persistent ) && md.persistent || structKeyExists( md, 'accessors' ) && isBoolean( md.accessors ) && md.accessors );
var implicitSetters = false;
// we have implicit setters if: accessors="true" or persistent="true" (and we don't have accessors="false")
if ( structKeyExists( md, 'accessors' ) && isBoolean( md.accessors ) ) {
implicitSetters = md.accessors;
} else if ( structKeyExists( md, 'persistent' ) && isBoolean( md.persistent ) ) {
implicitSetters = md.persistent;
}
if ( structKeyExists( md, 'properties' ) ) {
// due to a bug in ACF9.0.1, we cannot use var property in md.properties,
// instead we must use an explicit loop index... ugh!
Expand Down Expand Up @@ -1576,7 +1582,7 @@ component {
if ( !structKeyExists( variables.framework, 'routes' ) ) {
variables.framework.routes = [ ];
}
variables.framework.version = '2.0_Alpha_5';
variables.framework.version = '2.0_Alpha_6';
}

private void function setupRequestDefaults() {
Expand Down

0 comments on commit 4c13ba3

Please sign in to comment.