Skip to content

Commit

Permalink
fix(BaseEntity): Add better null value handling from the database
Browse files Browse the repository at this point in the history
  • Loading branch information
elpete committed Apr 30, 2019
1 parent cde0503 commit 8d62e67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions models/BaseEntity.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ component accessors="true" {
}

attrs.each( function( key, value ) {
variables._data[ retrieveColumnForAlias( key ) ] = value;
variables[ retrieveAliasForColumn( key ) ] = value;
variables._data[ retrieveColumnForAlias( key ) ] = isNull( value ) ? javacast( "null", "" ) : value;
variables[ retrieveAliasForColumn( key ) ] = isNull( value ) ? javacast( "null", "" ) : value;
} );

return this;
Expand Down

0 comments on commit 8d62e67

Please sign in to comment.