Hi,

 

I have an object A, which has an attribute array with object B:

 

Class A

{

    protected $bArray = array(new B($someData), new B($someOtherData));

}

 

A has a data mapper which goes into a DB, B has a data mapper which
saves its stuff into SOAP.

 

What are my possibilities to save this stuff?

 

1.       Inject bMapper into the aMapper: tons of unnecessary updates if
only a fraction changes his data, maybe some kind of uow here, but still
kinda ugly?

2.       Only use the mapper for loading stuff and do the saving
manually in the create and update actions? (my current solution, but
ugly too)

3.       ..

4.       Profit?

 

What are my possibilities here?

 

Thanks! J

 

Marc

 

Reply via email to