Example #1
0
 public function setConfiguration(Configuration $config)
 {
     $this->conn = Registry::get($config->getConn());
     if (null === $this->conn) {
         throw new Exception('Could not establish a connection to the name "' . $config->getConn() . '"');
     }
     $this->primary = $config->getPrimary();
     $this->table = $config->getTable();
     $this->entity = $config->getEntity();
 }