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 -- 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
YAHOO! GROUPS LINKS
|