Update has-one-repository.md
This commit is contained in:
		
							parent
							
								
									e447c5e2ae
								
							
						
					
					
						commit
						dba8bbd5c5
					
				| @ -33,7 +33,7 @@ new HasOneRepository(User, 'profile', user.get('id')); | |||||||
| 
 | 
 | ||||||
| ### `find()` | ### `find()` | ||||||
| 
 | 
 | ||||||
| Find associated object. | Find associated objects. | ||||||
| 
 | 
 | ||||||
| **Signature** | **Signature** | ||||||
| 
 | 
 | ||||||
| @ -63,7 +63,7 @@ const profile = await UserProfileRepository.find(); | |||||||
| 
 | 
 | ||||||
| ### `create()` | ### `create()` | ||||||
| 
 | 
 | ||||||
| Create associated object. | Create associated objects. | ||||||
| 
 | 
 | ||||||
| **Signature** | **Signature** | ||||||
| 
 | 
 | ||||||
| @ -93,7 +93,7 @@ console.log(profile.toJSON()); | |||||||
| 
 | 
 | ||||||
| ### `update()` | ### `update()` | ||||||
| 
 | 
 | ||||||
| Update associated object. | Update associated objects. | ||||||
| 
 | 
 | ||||||
| **Signature** | **Signature** | ||||||
| 
 | 
 | ||||||
| @ -113,7 +113,7 @@ profile.get('avatar'); // 'avatar2' | |||||||
| 
 | 
 | ||||||
| ### `remove()` | ### `remove()` | ||||||
| 
 | 
 | ||||||
| Remove associated object. Only to unassociate, not to delete the associated object. | Remove associated objects. Only to unassociate, not to delete the associated object. | ||||||
| 
 | 
 | ||||||
| **Signature** | **Signature** | ||||||
| 
 | 
 | ||||||
| @ -134,7 +134,7 @@ await Profile.repository.count() === 1; // true | |||||||
| 
 | 
 | ||||||
| ### `destroy()` | ### `destroy()` | ||||||
| 
 | 
 | ||||||
| Delete associated object. | Delete associated objects. | ||||||
| 
 | 
 | ||||||
| **Signature** | **Signature** | ||||||
| 
 | 
 | ||||||
| @ -155,7 +155,7 @@ await Profile.repository.count() === 0; // true | |||||||
| 
 | 
 | ||||||
| ### `set()` | ### `set()` | ||||||
| 
 | 
 | ||||||
| Set associated object. | Set associated objects. | ||||||
| 
 | 
 | ||||||
| **Signature** | **Signature** | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user