Long-time CF guy but ColdBox newb here, aware of it forever, haven’t really used it.
I’m thinking about a model to represent cumulative stats on a collection of objects, each of whose data is a json file in the file system. That strikes me as two model objects, one for an individual object and one for the collection.
Outside of ColdBox, I’d create an instance of the collection object, which would get a list of all the applicable files, and for each one, call new Item(filePath), ask it for its individual info, and accumulate the collection stats.
Is there a ColdBox-style equivalent to those new Item(filePath) calls? AFAIK, there’s no way to represent creating multiple instances of a transient (non-singleton) model object.
Is there some concept or syntax I’m unaware of, or should I just go with native new Item() calls?