title: Populate PHP Objects from MYSQL Database
body: <p>When population multiple objects in PHP from a database, what is the best way to do so? My thoughts are the options would be...</p>
  
  <ul>
  <li>Query the Database, loop through the results and create the object based off the data.</li>
  <li>Pass a Database handle to the class and query the information in the constructor.</li>
  </ul>
  
  <p>I am leaning towards the first option for efficiency to avoid extensive queries, however as there are a lot of properties for each object and PHP lacks structs, it seems silly to pass in dozens of parameters to the constructor.</p>
  
  <p>What is the most efficient way to handle this?</p>