Hi there,

 

Using the de Contactmanager as example,

I added to my CF dataService destination a relationship one-to-many mapping to the employee destination setting it to the employees variable

 

<properties>

      <metadata>

            <identity property="Companyid"/>

            <one-to-many property="employees" destination="employee"/>

      </metadata>

</properties>

 

I added to my company CFCs and AS files that variable setting it as follow:

CFC:

<cfproperty name="employees" type=" myPathToMyCFCObject[] ">

<cfset this.employees  = arraynew(1)/>

 

AS3:

public var employees:ArrayCollection;

 

            public function myCompanyClass()

            {

                  employees = new ArrayCollection();

            }

 

(I did this respecting the order of properties definition since AS3 file and CFC must have them defined in the same order)

 

The problem is, when I use myCompanyDataService.getItem({id: myCompanyId}) I get the Company Object perfectly with the employees variable as an ArrayCollection but the Array is always empty. In CF side I have debugged and that variable is filled with the correct array of employees.cfc.

. Is this not totally supported in beta 2 or Am I doing something wrong?

 

 

Thanks,

 

João Fernandes
Dep. Informática - Área de Desenvolvimento
Cofina media

Avenida João Crisóstomo, Nº 72 . 1069-043 Lisboa PORTUGAL
Tel (+351) 213 185 200 . Fax (+351) 213 540 370
[EMAIL PROTECTED]

 



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to