title: Yii Indirect modification of overloaded property
body: <pre><code>$winnerBid = Bids::model()-&gt;find($criteria);
  </code></pre>
  
  <p>Model has next relations:</p>
  
  <pre><code>public function relations() {
          return array(
              'item' =&gt; array(self::BELONGS_TO, 'Goods', 'item_id'),
              'room' =&gt; array(self::BELONGS_TO, 'Rooms', 'room_id'),
              'seller' =&gt; array(self::BELONGS_TO, 'RoomPlayers', 'seller_id'),
              'buyer' =&gt; array(self::BELONGS_TO, 'RoomPlayers', 'buyer_id'),
          );
      }
  </code></pre>
  
  <p>When I am trying to save:</p>
  
  <pre><code> $this-&gt;seller-&gt;current_item++;
      $this-&gt;seller-&gt;wins++;
      $this-&gt;seller-&gt;save();
  </code></pre>
  
  <p>I am getting error:</p>
  
  <blockquote>
    <p>Indirect modification of overloaded
    property Bids::$seller has no effect
    (/var/www/auction/www/protected/models/Bids.php:16)</p>
  </blockquote>
  
  <p><strong>But it was everything fine at another server?
  How to fix it? Or override php directives? Any ideas? TNX</strong></p>