Beispiel #1
0
 /**
  * @param string $con
  * @chainable
  */
 public function setConnectionName($con)
 {
     // damit das safer ist, updaten wir das doctrine package, wenn das hier gesetzt wird
     if (isset($this->dc) && $con != $this->con) {
         $this->dc->setEntityManager($this->dc->getModule()->getEntityManager($con));
     }
     $this->con = $con;
     return $this;
 }