Saves or updates data of the entity and all related entities to the database.
entitySave(entity [, forceInsert])
→ returns void
false
Use entitySave to save a newly created entity.
var company = entityNew("Company");
company.setName(form.companyName);
company.setIndustry(form.industry);
company.setEmployees(form.employeeCount);
company.setWebsite(form.companyWebsite);
entitySave(company);
Signup for cfbreak
to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.