Many to Many Fixtures?

Are there any built in ways to handle building a many to many relation in a fixture? In Yii 1.1 we would manually set ids in the data, but that trick does not appear to work in Yii2.

Thanks!

Yii v2.0.1

Looks like I still can use the ids if I disable constraints before and after. Any better ways to handle these?