We're updating the issue view to help you get more done. 

Casts feature does not work on getters

Description

When specifying `casts="boolean"` it will return the property as a boolean in a memento, but not with a getter. Also, `get_casts()` does show the property as listed as boolean.
I have attached the `qRegisteredPlayer.cfc` as well as the output from the following code:

 

1 2 3 4 5 6 7 8 9 10 component extends="baseHandler" { property name="wirebox" inject="wirebox"; function index(){ event.noRender() temp = wirebox.getInstance('qRegisteredPlayer').get() writeDump( var=temp[1].get_casts(), label='get_casts' ); writeDump( var=temp[1].getbirthCertificate(), label='getbirthCertificate' ); writeDump( var=temp[1].getMemento(), label='getMemento' ); } }

 

Environment

None

Status

Assignee

Unassigned

Reporter

Andrew Davis

Labels

None

Priority

Major