Fluent Nhibernate endless cycle
<p>There is no exeption.Just wanna know is it well or not.</p>

<p>Medicine Map:</p>

<pre><code>    public MedicineMap()
     {
        Id(x =&gt; x.Id);
        Map(x =&gt; x.Name);
        Map(x =&gt; x.Date);
        HasManyToMany(x =&gt; x.Companies).Cascade.All();
       }
</code></pre>

<p>Company Map:</p>

<pre><code>    public CompanyMap()
    {
        Id(x =&gt; x.Id);
        Map(x =&gt; x.CompanyName);
        HasManyToMany(x =&gt; x.Medicines).Cascade.All();
    }   
</code></pre>

<p>When im trying to get "medicines" from base it is returned me endless cycle.
like this :</p>

<p><a href="https://i.stack.imgur.com/Y0Cwl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Y0Cwl.png" alt="enter image description here"></a></p>

<p>So there are medicine filed in company and conversely company field in medicine endlessly.</p>