code: public function initializeObject($obj)
      {
          if ($obj instanceof PersistentCollection) {
              $obj->initialize();
          } else if ($obj instanceof Proxy\Proxy) {
              $obj->__doctrineLoad__();
          }
      }
docs: Initialize an object that is a lazy load proxy, or do nothing.
  
  @param object $obj