Back
findAllKeys()
Returns all primary key values in a list.
In addition to quoted
and delimiter
you can pass in any argument that findAll()
accepts.
// basic usage
primaryKeyList = model("artist").findAllKeys();
// Quote values, use a different delimiter and filter results with the "where" argument
primaryKeyList = model("artist").findAllKeys(quoted=true, delimiter="-", where="active=1");
Copied!