I have a code in fill function of CompanyDAO, which reads the list of
employees. So I get the ArrayCollection of emploees for every company,
but when I try to add or delete emploee in this ArrayCollection, I get 
the error

TypeError: Error #1034: Type Coercion failed: cannot convert
[EMAIL PROTECTED] to flash.utils.Dictionary.

with long stack dump (most of called functions are from
mx.data.utils::SerializationProxy). Apparently there is something
missing in my code...

Zdenek M

--- In [email protected], João Fernandes
<[EMAIL PROTECTED]> wrote:
>
> 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