• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

ORM Help

New Here ,
Mar 13, 2013 Mar 13, 2013

Copy link to clipboard

Copied

I am dumping obj = entityloadbypk('teams', 1) - http://i.imgur.com/B2Vp3qn.png

How would I remove a particular email address? If I try email = entityloadbypk('emails', 1), then obj.removeemail(email), I get an error that says "Column 'team' cannot be null".

What exactly should I pass to this argument?

Views

353

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Mar 14, 2013 Mar 14, 2013

Copy link to clipboard

Copied

LATEST

Coldfusion  ORM provide EntityDelete() method which is delete the record from the database for the specified entity. Depending on the cascade attribute specified in the mapping, it also deletes the associated objects.

<cfset test = EntityLoad('emails', 1, true)>

<cfscript>

WriteDump(test);

</cfscript>

<cfset EntityDelete(test)>

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation