fixed indentation + adapted to markdown syntax
This commit is contained in:
parent
5aa0efd818
commit
8f41fdf90d
|
@ -710,8 +710,8 @@ AbstractClass.hasMany = function hasMany(anotherClass, params) {
|
|||
* @param {Class} anotherClass - class to belong
|
||||
* @param {Object} params - configuration {as: 'propertyName', foreignKey: 'keyName'}
|
||||
*
|
||||
* {Usage examples}
|
||||
* Suppose model Post have a {belongsTo} relationship with User (the author of the post). You could declare it this way:
|
||||
* **Usage examples**
|
||||
* Suppose model Post have a *belongsTo* relationship with User (the author of the post). You could declare it this way:
|
||||
* Post.belongsTo(User, {as: 'author', foreignKey: 'userId'});
|
||||
*
|
||||
* When a post is loaded, you can load the related author with:
|
||||
|
|
Loading…
Reference in New Issue