title: Manager classes for Objects
body: <p>Moving from C#/C++ to PHP OOP has proven a bit problematic as I am not sure it is standard to design the code layout in the same manner. As that is the case, I am curious if the following would be considered problematic or wrong when it comes to PHP.</p>
  
  <ul>
  <li>CDeviceManager class (1 initiated)</li>
  <li>CDevice class</li>
  <li>Keep a private array of CDevice in the CDeviceManager class</li>
  <li>Use public methods to fetch devices, search devices, etc.</li>
  </ul>
  
  <p>The most problematic question however is populating each CDevice from a MySQL Database. Would it be safe to include my Database class directly into CDeviceManager and Populate CDevice Array in CDeviceManager Construct?</p>
  
  <p>A lot of what I have read says it is smart to separate the business logic from the view, where I feel this method would do just that. I have not seen many other projects that appear to use this approach though, why I am worried I may be missing something.</p>