Ejemplo n.º 1
0
 public function update($callback = null)
 {
     try {
         parent::update($callback);
     } catch (\Sooh\DB\Error $e) {
         if (\Sooh\DB\Broker::errorIs($e, \Sooh\DB\Error::tableNotExists)) {
             $this->createTable();
             parent::update($callback);
         } else {
             throw $e;
         }
     }
 }