title: Get mysql table field names in ZF2
body: <p>I want to store the csv data dynamically into mysql table.    According to my csv columns header i want to insert the data into respective columns in mysql table. For this, I need to get all the table fields name from Zend Framework Controller or Model.</p>
  <p>I have tried with:</p>
  <p>**</p>
  <pre><code>$metadata = new Zend\Db\Metadata\Metadata($adapter);
  $table = $metadata-&gt;getTable($tableName);
  $table-&gt;getColumns();
  </code></pre>
  <p>**</p>
  <p>But, it shows the error:</p>
  <p><strong>Fatal error: Class 'Import\Model\Zend\Db\Metadata\Metadata' not found.</strong></p>
  <p>How can I get all the mysql table fields name using <strong>Zend Framework 2</strong>?</p>