title: How to set WRITE_TRUNCATE from BigQuery PHP SDK?
body: <p>The <a href="https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs" rel="nofollow noreferrer">documentation</a> suggests to set:</p>
  
  <p><code>configuration.load.writeDisposition</code> to <code>WRITE_TRUNCATE</code>.</p>
  
  <p>However, when attempting to set the option for this, nothing works. The following array consists of all the options I've tried:</p>
  
  <pre><code>    $options = [
          'configuration.load.writeDisposition' =&gt; 'WRITE_TRUNCATE',
          'configuration.writeDisposition' =&gt; 'WRITE_TRUNCATE',
          'writeDisposition' =&gt; 'WRITE_TRUNCATE',
          'configuration' =&gt; [
              'writeDisposition' =&gt; 'WRITE_TRUNCATE',
              'load' =&gt; [
                  'writeDisposition' =&gt; 'WRITE_TRUNCATE',
              ],
          ],
      ];
  
      $table-&gt;load($data, $options);
  </code></pre>
  
  <p>I added each option individually, observing each time that the table merely grew in size.</p>