Martin Orth wrote:
I want to ask two questions:
1. What is the best way to realize a one to many relationship between a user and his links? Does an object typicaly has an owner?

Object type array properties are really arrays of pointers to other objects -- they are not arrays of arbitrary data.


I would suggest that if links can be shared between users you might have an aLinks property in your dmProfile. On the other hand if links are unique to a specific user, then a simple point property like dmprofileid could be used in the link object relating it to the user.

2. What is a good method to migrate(import) existing content from a non farcry system(with coldfusion) into farcry(same maschine)? Maybe anyone has done this before and can give me some hints eg. the right functions or tags to use and so on.

You might start by instantiating an instance of your content type, querying the source database, and using createdata() and setData() to import data as objects into your new database.


If your objects have relationships with other tables (which in turn may be object types) your import scripts will become a little more complicated.

All you need to do is prepare a structure of properties and values and pass it in to setdata() to update the instance. It's even clever enough to automatically update array properties if you pass in an array of UUID references.

-- geoff
http://www.daemon.com.au/


--- You are currently subscribed to farcry-dev as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to