Ejemplo n.º 1
0
 /**
  * __construct
  *
  * Constructor
  *
  * @access  public
  * @param   ResultHandler   $result
  * @param   Session         $session
  * @param   Projection      $projection
  */
 public function __construct(ResultHandler $result, Session $session, Projection $projection)
 {
     parent::__construct($result);
     $this->projection = $projection;
     $this->session = $session;
     $this->hydration_plan = new HydrationPlan($projection, $session);
     $this->entity_converter = $this->session->getClientUsingPooler('converter', $this->projection->getFlexibleEntityClass())->getConverter();
 }
 /**
  * @param ResultHandler $result
  * @param BaseSession   $session
  */
 public function __construct(ResultHandler $result, BaseSession $session)
 {
     parent::__construct($result);
     $this->session = $session;
     $this->initTypes();
 }