Return to v2.0 docs

properties()


Model Object Miscellaneous Functions struct model


Returns a structure of all the properties with their names as keys and the values of the property as values.

Name Type Required Default Description
returnIncluded boolean No true Whether to return nested properties or not.
// Get a structure of all the properties for an object
user = model("user").findByKey(1);
props = user.properties();

Related Functions

Miscellaneous Functions