fixed indentation + adapted to markdown syntax

This commit is contained in:
Sébastien Drouyer 2012-11-03 02:05:27 +01:00
parent 5aa0efd818
commit 8f41fdf90d
1 changed files with 13 additions and 13 deletions

View File

@ -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: