Skip to content

Model Configuration

ignoredColumns()

ignoredColumns() — returns void

Available in: model Category: Miscellaneous Functions

Use this method to specify which columns cannot be used by the wheels ORM.

NameTypeRequiredDefaultDescription
columnsarrayno[runtime expression]Array of columns names that will be ignored.
// 1. Ignore a single column in the model's config() method
// In app/models/User.cfc
component extends="Model" {
	function config() {
		ignoredColumns(columns=["legacyField"]);
	}
}

// 2. Ignore multiple columns so they are excluded from Wheels ORM property mapping
// In app/models/Product.cfc
component extends="Model" {
	function config() {
		ignoredColumns(columns=["internalCode", "deprecatedFlag", "tempCache"]);
	}
}