title: PHP entity class generator
body: <p>I am creating entity (of entity-view-controller)(in other words, model of MVC) classes which theoreticlly match the databse table I have. Is there a tool which reads mysql table and creates a model class code? (NOT on execution, a code output is required) 
   I expect an output like</p>
  
  <pre><code>class{
  public $columnname1;
  public $columnname2;
  public $columnname3;
  public $columnname4;
  public $columnname5;
  public $columnname6;
  function __construct(&amp;$columnname1, &amp;$columnname2){...}
  function insert(&amp;$columnname1, &amp;$columnname2){}
  function delete(&amp;$columnname1){}
  ...
  }
  </code></pre>
  
  <p>A tool which would also create insert,update and delete by id functions would help me a lot. </p>
  
  <p>The tool may be free or paid.</p>