Currently it is not possible to store nested structs/cfc's.
When you say googleWrite(Team) the only parts of Team that are written
to the GAE Datastore are the following variable scope items:

number, boolean, string, date, or array thereof.

I will update the wiki page:
http://wiki.openbluedragon.org/wiki/index.php/GoogleAppEngine:Datastore

to include this detail.

One possible workaround would be to do something like this:

write:
------
Team.setCountryID = googleWrite(Country);


read
------
Team = googleRead(Form.team_key);
Country = googleRead(Team.getCountryID);
Team.setCountry(Country);


Matt M.




On Thu, Jan 28, 2010 at 10:04 AM, Nurettin Omer Hamzaoglu
<[email protected]> wrote:
> I couldn't manage to update with the following code, any ideas? Entity
> updated but Country data could not be set.
>
> Country = googleRead(Form.country_key);
> Team = googleRead(Form.team_key);
> Team.setTeamName("#Form.team_name#");
> Team.setCountry(Country);
> googleWrite(Team);
>
> I'm using the following getters and setters.
> <cffunction name="setCountry" returntype="void">
>        <cfargument name="argCountry" type="Country" required="Yes"/>
>        <cfset variables.COUNTRY = arguments.argCountry/>
>        <cfreturn />
> </cffunction>
>
> <cffunction name="getCountry" returntype="Country">
>        <cfreturn variables.COUNTRY/>
> </cffunction>
>
> --
> Open BlueDragon Public Mailing List
>  http://www.openbluedragon.org/   http://twitter.com/OpenBlueDragon
>  mailing list - http://groups.google.com/group/openbd?hl=en
>
>  !! save a network - please trim replies before posting !!

-- 
Open BlueDragon Public Mailing List
 http://www.openbluedragon.org/   http://twitter.com/OpenBlueDragon
 mailing list - http://groups.google.com/group/openbd?hl=en

 !! save a network - please trim replies before posting !!

Reply via email to