code: private void checkForeignKeyForM2M(SQLiteDatabaseSchema currentSchema, final SQLiteEntity currentEntity,
  			ClassName m2mEntity) {
  		// check for m2m relationship
  		if (m2mEntity != null) {
  			SQLiteEntity temp = currentSchema.getEntity(m2mEntity.toString());
  			AssertKripton.asserTrueOrForeignKeyNotFound(currentEntity.referedEntities.contains(temp), currentEntity,
  					m2mEntity);
  		}
  	}
docs: Check foreign key for M 2 M.
  
  @param currentSchema
  the current schema
  @param currentEntity
  the current entity
  @param m2mEntity
  the m 2 m entity