Added where configuration option to manyMany relations similar to the other relation types.

Fixed a bug that caused the id of a manyMany related model to be set to the bridge table id.