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; } } } }
public function abort() { $this->db->getDoctrine()->clear(); }