From: Andreas A. <a.a...@th...> - 2001-08-20 22:27:44
|
Hi John, > This seems like an example of a multi-lined "owned object". I > didn't go back and read the original mail, so I hope this is useful. > There would be 3 entities: user, userinterest, interest. Jepp, exactly. > The owned object would be "userinterest", with a parententity of user. > In the parent entity, you > define how a parent relates to it's "owned objects" like this: > > 'ownedobjects' => array ( > 'fkey' => 'PATH1', // from userinterest > 'invfkey' => 'PATH2', // from user > 'entity' => 'userinterest', // the ownedobject entity > 'path' => 'USERINTERESTS', // how to reference > from the parent object > ) Cool. > Once all the meta data work is done, then all the linking of user and > userinterests will be done automatically (thanks to ent2qry). There will > also be a ready made multiline UI for choosing interests to > associate with this user (assuming the user layout file is correct). Absolutely fantastic. Andi |