tag:robotlegs.tenderapp.com,2009-10-18:/discussions/questions/191-injecting-value-objects-in-the-model-should-it-be-done-and-why-am-i-getting-an-error-updating-a-vo-in-the-modelRobotlegs: Discussion 2018-10-18T16:35:13Ztag:robotlegs.tenderapp.com,2009-10-18:Comment/19018612010-06-09T18:55:42Z2010-06-09T18:55:42ZInjecting Value objects in the Model, should it be done, and why am I getting an error updating a VO in the model<div><p>When you don't inject the VO does your model look something like
this?</p>
<pre>
<code>public class RuntimeParamsModel extends Actor
{
private var _runtimeParams:RuntimeParamsVO;
public function RuntimeParamsModel()
{
_runtimeParams = new RunetimeParamsVO();
}
public function set fileUrl( value:String ):void
{
_runtimeParams.settingsFileUrl = value;
}
}</code>
</pre></div>Jason Diastag:robotlegs.tenderapp.com,2009-10-18:Comment/19018612010-06-09T19:08:18Z2010-06-09T19:08:18ZInjecting Value objects in the Model, should it be done, and why am I getting an error updating a VO in the model<div><p>Hi Stephen,</p>
<p>You definitely don't need to inject the VO. Sounds to me like
something simple is going wrong - like forgetting to initialize the
VO or something similar.</p></div>Shaun Smithtag:robotlegs.tenderapp.com,2009-10-18:Comment/19018612010-06-11T09:55:39Z2010-06-11T09:55:39ZInjecting Value objects in the Model, should it be done, and why am I getting an error updating a VO in the model<div><p>yep the problem was with my VO not the injecting process. Sorted
now thanks.</p>
<p>Stephen</p></div>stephenadams1