to use xxx-to-many when dealing with managed Objects you just need to 
fill the related items within the main assembler that you are 
requesting. If you change anything to any of those ( or add any related 
item ) those will be redirected to the corresponding destination. In 
case of the Company <> Employees example, your Company Assembler will 
return a list of Companies, each with Employees properties filled 
totally or only with IDs ( in case you'll use lazy loading ). If you add 
a new employee to any of the companies, that Item, once commited will be 
sent to the employeeAssembler and get updated with the corresponding ID 
once the transaction is successfully committed.


-- 

João Fernandes

http://www.onflexwithcf.org
http://www.riapt.org

Reply via email to