[ColdBox 6.0.0] [cbOrm 2.5.0]: Running all getters automatically

15 views
Skip to first unread message

Ancient Programmer

unread,
Sep 30, 2020, 7:06:18 PM9/30/20
to ColdBox Platform
Recently, I used getMemento() quite often. I noticed getMemento runs all getters in the object. I was wondering how could I have the same behavior when using only get() ?

productService = getInstance( "ProductService" );
product = productService.get( 1 ); // Object was created and initialized

dump( product.getMemento() ); // All getters were executed
dump( product ); // No getters were executed

Any tips or suggestions? Thank you.
Reply all
Reply to author
Forward
0 new messages