feat(sequelize): add belongsToMany definition

This commit is contained in:
Igor Ovsiannikov
2015-04-23 19:22:48 +03:00
parent 51d426745a
commit d72fa373ae
2 changed files with 10 additions and 0 deletions
+8
View File
@@ -909,6 +909,14 @@ declare module "sequelize"
*/
belongsTo<TInstance, TPojo>(target: Model<TInstance, TPojo>, options?: AssociationOptions): void;
/**
* Creates an association to connect sources with multiple targets. Furthermore the targets can also have connections to multiple sources.
*
* @param target
* @param options
*/
belongsToMany<TInstance, TPojo>(target: Model<TInstance, TPojo>, options?: AssociationOptions): void;
/**
* Create an association that is either 1:m or n:m.
*