| Dan... It's all about delegation, dude... Reactor's job is to get/save data in terms of interacting with databases. It may be a good idea to have an object like the one from MG to handle what you want, but the clear lines of responsibility with a model that makes things make sense. :) So Reactor gets you beans... where the data that goes into the beans comes from isn't Reactor's responsibility. It doesn't relate to DAO business, it relates to UI/model business... which is what your controllers are for in MG/M2. Using something like that object, or its equivalent in a framework controller, is your best course of action. Incidentally, you could further reduce your code below a little bit: <cfset User = CreateObject("component","CollectionBeanMaker").init(FORM).MakeBean(User).save() /> Since the createObject().init() call returns the CollectionBeanMaker and the .makeBean() call returns the User bean populated with data from the form scope, you can simply tack your save() call on the end of it. The way the objects work, since your User exists before your CollectionBeanMaker, once the CBN is done calling the setters the data will be set up in User because objects are passed byRef. However, since makeBean() DOES return the populated object, it's available at the end of the method chain to tack save() onto. Laterz, J ------------------------------------------------ Jared C. Rypka-Hauer Continuum Media Group LLC Member, Team Macromedia - ColdFusion "That which does not kill me makes me stranger." - Yonah Schmeidler On Feb 28, 2006, at 7:13 PM, Daniel Short wrote:
|
- [Reactor For CF] New features: Table and Field aliases Doug Hughes
- Re: [Reactor For CF] New features: Table and Field ... Dave Shuck
- SV: [Reactor For CF] New features: Table and Field... Tormod Boga
- RE: [Reactor For CF] New features: Table and Field... Daniel Short
- Re: [Reactor For CF] New features: Table and Field ... Sean Corfield
- RE: [Reactor For CF] New features: Table and Fi... Doug Hughes
- Re: [Reactor For CF] New features: Table an... Sean Corfield
- [Reactor For CF] Cutting out Repetive setXXX(FORM.X... Daniel Short
- RE: [Reactor For CF] Cutting out Repetive setXX... Doug Hughes
- RE: SPAM-LOW: RE: [Reactor For CF] Cutting... Daniel Short
- Re: SPAM-LOW: RE: [Reactor For CF] Cut... Jared Rypka-Hauer
- RE: SPAM-LOW: Re: SPAM-LOW: RE: ... Daniel Short
- RE: SPAM-LOW: RE: [Reactor For CF... Doug Hughes
- Re: SPAM-LOW: RE: [Reactor Fo... Jared Rypka-Hauer
- RE: SPAM-LOW: RE: [Reacto... Doug Hughes
- RE: SPAM-LOW: RE: [Reacto... Daniel Short
- Re: SPAM-LOW: RE: [Reacto... Jared Rypka-Hauer
- Re: [Reactor For CF] Cutting out Repetive setXX... Sean Corfield
- RE: [Reactor For CF] Cutting out Repetive s... Daniel Short
- Re: [Reactor For CF] Cutting out Repeti... Jared Rypka-Hauer
- RE: [Reactor For CF] New features: Table and Field... Chris Blackwell

