Skip to content

Commit 17812d3

Browse files
authored
Merge pull request #274 from aliaspooryorik/patch-1
Update super-type-usage-methods.md
2 parents dc2f833 + 9dc70bd commit 17812d3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

the-basics/models/super-type-usage-methods.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
The super type offers 2 methods for interacting with your model layer:
88

99
* `getInstance()` - Retrieve a model object (Instead of injection)
10-
* `populateModel()` - Retrieve and/or populate a model object from the request collection.
10+
* `populate()` - Retrieve and/or populate a model object from the request collection.
1111

1212
Please also note that your models do not inherit from anything within ColdBox. They are shy and decoupled by default. If you need anything from the ColdBox environment, then you will have to inject it using our [injection dsl.](injection-dsl/)
1313

@@ -41,7 +41,7 @@ var oUser = getInstance("MyUser");
4141
var oUtil = getInstance("mypath.utilities.MyUtil");
4242
```
4343

44-
## `populateModel()`
44+
## `populate()`
4545

4646
ColdBox can populate or bind model objects from data in the request collection by matching the name of the form element to the name of a property on the object. You can also populate model objects from JSON, XML, Queries and other structures a-la-carte by talking directly to [WireBox's object populator](https://wirebox.ortusbooks.com/advanced-topics/wirebox-object-populator).
4747

@@ -66,7 +66,7 @@ ColdBox can populate or bind model objects from data in the request collection b
6666
*
6767
* @return The instance populated
6868
*/
69-
function populateModel(
69+
function populate(
7070
required model,
7171
scope="",
7272
boolean trustedSetter=false,

0 commit comments

Comments
 (0)