Circular Dependency Problem With Activerecord Relations

I was using ActiveRecord models by defining relationships between them. Now I am trying to use dependency injection container with my ActiveRecord models and want to inject my dependencies. But circular dependency issue is confusing me.

If we define our relationships like explained in ‘working-with-relational-data’ section of ActiveRecord guide in ‘The Definitive Guide to Yii 2.0’, won’t we end up having circular dependency issue? or I am missing something?

Thanks for any help and pointers.

PS: Sorry i cant add direct link to documentation because this is my first post here.