Beispiel #1
0
 public function validateTables()
 {
     //Make sure Doctrine is happy with all that
     $validator = new SchemaValidator($this->db->getDoctrine());
     $errors = $validator->validateMapping();
     if (count($errors) > 0) {
         foreach ($errors as $error) {
             if (is_array($error)) {
                 echo implode("<br />", $error);
             } else {
                 echo $error;
             }
         }
     }
 }
Beispiel #2
0
 public function abort()
 {
     $this->db->getDoctrine()->clear();
 }