Maybe ORM will do more than I originally thought... If I start with two
empty tables - domain and email, and get an email from
[email protected](curDomain-gmail.com, curUser-xyz), and the code below
runs, two records
will be inserted (one in each table).
And then later on, I get an email form [email protected], I can run this exact
same code and it will know not to insert a new record into domain?

domain = entityNew("domain");
> domain.setName(curDomain)
> email = entityNew("email")
> email.setDomain(domain);
> email.setUser(curUser);
> domain.save();
>
>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:329205
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to